Discussion Forums  >  Status Bar, Navigation Bar

Replies: 4    Views: 182

Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
03/07/13 07:37 PM (11 years ago)

Make refresh button disappear

I want to make the refresh button disappear from the initial screen but I don't want to make the app offline. I will use the auto refresh feature that is posted in other topics in order for the app to be refreshed… Is there a way for that?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
03/07/13 08:35 PM (11 years ago)
Try setting the navigation bar to hidden?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
03/07/13 09:24 PM (11 years ago)
look in BT_viewUtilities in the BT_layout folder - on line 311 there is a block of code that looks like this - if([theScreenData isHomeScreen]){ UIBarButtonItem *theRefreshButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:appDelegate action:@selector(downloadAppData)]; [theViewController.navigationItem setLeftBarButtonItem:theRefreshButtonItem]; [theRefreshButtonItem release]; } delete that entire block of code and you will be good to go
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
03/08/13 01:01 AM (11 years ago)
@chris1 thanks chris for the advice but I still want the navigation bar, because I still need a title there. @absentia Thank you very much...I'll try this out and tell you the results.
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
03/08/13 03:32 PM (11 years ago)
yes it works fine… thank you so much…
 

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.