Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 91

MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
03/27/13 12:58 PM (12 years ago)

Remove Refresh Button

Hey, is there a way to remove the refresh button from the home page? I know I can remove it by hiding the nav bar, but I need it. And i've read that if you delete URL cloud, it will also go away. But I need that too. Any other way to do it? Thanks. Miguel
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/27/13 01:12 PM (12 years ago)
Go to BT_view_utilities.m go to around line 311 find this if([theScreenData isHomeScreen]){ UIBarButtonItem *theRefreshButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:appDelegate action:@selector(downloadAppData)]; [theViewController.navigationItem setLeftBarButtonItem:theRefreshButtonItem]; [theRefreshButtonItem release]; } comment the middle part out or delete if your hardcore so it looks like this if([theScreenData isHomeScreen]){ // UIBarButtonItem *theRefreshButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:appDelegate action:@selector(downloadAppData)]; // [theViewController.navigationItem setLeftBarButtonItem:theRefreshButtonItem]; // [theRefreshButtonItem release]; }
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
03/27/13 01:14 PM (12 years ago)
@kittsy - You enjoy beating the champs last week?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/27/13 01:21 PM (12 years ago)
yes it was pretty awesome, I'm a season ticket holder for my sins and wan't expecting it. Weird season for us, Beat United, City, Spurs, Draw with arsenal but then get beat by Wigan.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
03/27/13 01:23 PM (12 years ago)
I hear that. Always had a season ticket at Celtic Park. First season without the dark side in our league and while we've had a decent Euro / Big cup run we've lost some crazy games.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
03/27/13 01:36 PM (12 years ago)
Thanks Kittsy. lol, europeans and football, right.. What your team Kittsy?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/27/13 01:39 PM (12 years ago)
Everton, did that code change work
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
03/27/13 02:08 PM (12 years ago)
Yes it did. Thanks Everton, i always Played everton on FA Cup, a spectrum 48k game. Loved it. Im Benfica, portuguese team. Miguel
 
WebNevees
Code is Art
Profile
Posts: 206
Reg: Oct 28, 2012
KL
11,660
like
04/20/13 03:12 AM (12 years ago)
Thanks Kittsy well pointed out I think it would be a good idea to make it controllable via the bt_config file so you can turn it off or on as you'd like from the control panel. It would just need an if clause to check if the property is set... something like: if ([BT_strings getJsonPropertyValue:theScreenData.jsonVars nameOfProperty:@"displayRefreshButton" defaultValue:@""] == YES) { .....the actual if clause and button setting here..... }
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
04/25/13 09:01 AM (12 years ago)
Kittsy, awesome! Now that it's removed however, I would like to replace and add a new button there that links to a screen. Would you mind telling me how that could be done? YOU ROCK!! Thanks! David https://buzztouchmods.com
 

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.