AppGuy30
Code is Art
Profile
Posts: 737
Reg: Oct 29, 2011
location unknow...
14,070
07/03/15 11:24 AM (9 years ago)

Refresh App with Right Nav Button

Is it possible to refresh the app in a custom screen with a right nav button?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/03/15 08:18 PM (9 years ago)
With a little surgery, yes. Select 'refresh' as the button type in your Top Nav Bar options in your plugin. In 'right button load screen' also type 'refresh'. Save it. Around line 532 of your BT_viewController paste this: if ([loadScreenItemId isEqualToString:@"refresh"]) { // BT_appDelegate *appDelegate = (BT_appDelegate *)[[UIApplication sharedApplication] delegate]; [appDelegate refreshAppData]; } Replace 'BT_appDelegate' to your correct project appDelegate. Remember when you refresh App Data, it will return to the home screen, so if this is not your plan, make another plan. Cheers! -- Smug
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.