ios - Button to refresh the layout Xcode -
i'm new ios development if weird i'm sorry.
at point, need set refresh button have on layout refresh layout on application. can't understand going on cuz think have needs.
my application gets 6 closer project's user's location, want when button pressed, 6 balls (project's) refresh , give me new project's.
layout:
layout need refresh on button pressed
code:
override func tabbar(_ tabbar: uitabbar, didselect item: uitabbaritem){ switch (item.tag) { case 1: print("button pressed refresh") self.updatenavbuttons = true self.refreshmenu() break case 2: print("button pressed sound") self.btsetsound() break default: break }
function:
func refreshmenu(){ if(self.updatenavbuttons) { print("refreshing menu...") self.loaddefaults() self.updatenavbuttons=true self.distanciapercorrida = 0.0 self.setnavbuttonstext() } }
i appreciate effort me. thanks
Comments
Post a Comment