ios - Fade out button when not touching for 3 seconds and fade in when user touches the screen -


problem:

i have uibutton i'd fade out few seconds when user doesn't touch screen , fade them in when user touches screen. think might need use timer , animation in viewdidload part

@iboutlet var startstopbutton:  uibutton!  @ibaction func startstopbuttontapped(_ sender: uibutton) {  }   override func viewdidload() {     super.viewdidload() } 


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -