swift - AKSwiftSlideMenu activity indicator -


i using akswiftslidemenu project web , trying put activity indicator display indicator when user pressed menu bars on top right. tried everything. there way once user pressed 3menubar @ top display activity indicator until menu appear side.

i database processing build menu item before slide out.

since akswiftslidemenu using uinavigationcontroller, can add uiactivityindicator on right side of navigation controller.

something that:

func showactivityindicator() {     let activityindicator = uiactivityindicatorview(frame: cgrect(x: 0, y: 0, width: 20, height: 20))     let barbutton = uibarbuttonitem(customview: activityindicator)     self.navigationitem.setrightbarbutton(barbutton, animated: true)     activityindicator.startanimating() } 

don't forget, need prevent segue happening, , halt program until done loading.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -