Discussion Forums  >  Uncategorized

Replies: 11    Views: 430

cteselle
Apple Fan
Profile
Posts: 34
Reg: Jun 13, 2011
California
340
06/20/11 12:58 PM (14 years ago)

Move refresh button to a different tab?

Is there a way to move the refresh button to a different tab? I'd prefer to have it on an extras or settings screen, instead of home. Thanks.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
06/20/11 09:19 PM (14 years ago)
If you have a look at the 'Advanced Menu Properties' on many screen types you'll find a nav bar option to include a refresh button, that what you mean? Video screen, gallery screen etc....
 
cteselle
Apple Fan
Profile
Posts: 34
Reg: Jun 13, 2011
California
340
like
06/20/11 09:26 PM (14 years ago)
No, I was referring to the main refresh button for the App. The one that downloads the latest configuration data. Instead of moving it, I decided to remove it entirely and refresh the configuration data automagically if it's been changed.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
06/21/11 04:27 AM (14 years ago)
Ah, makes sense, sorry. Misread what you where trying to do.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/21/11 02:53 PM (14 years ago)
Good question. The Refresh button is placed on the left in the BT_screenUtilities.m > configureBackgroundAndNavBar method. This method checks to see if the screen 'isHomeScreen' and if it is ads a Refresh button. So, to get a Refresh Button to appear on a different tab, we need to set the isHomeScreen variable on a different screen. Open BT_Objects > BT_application.m file and find the buildInterface method. You'll see in the method where it does a [theScreen setIsHomeScreen true] for the first view controller on each tab. This means you'll have 5 screens that have isHomeScreen set to TRUE if you're app uses 5 tabs. But, the app is setup to show the Refresh Button only for the first tab, as you realize. You can modify this behavior in the BT_screenUtilities.m > configureBackgroundAndNavBar method to add the Refresh Button on whatever view controllers you want.
 
cteselle
Apple Fan
Profile
Posts: 34
Reg: Jun 13, 2011
California
340
like
06/21/11 03:00 PM (14 years ago)
Awesome, thanks for the tip!
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
06/21/11 03:03 PM (14 years ago)
Now there is an answer, nice one great info.
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
12/28/11 05:30 PM (14 years ago)
I don't mean to sound like a dummy, but once I have opened BT_applications, how to do you get to the Build Interface. I somehow can't find it
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/29/11 02:48 AM (14 years ago)
No questions are dumb ;-) The source-code / project you download from your control panel does not have any Interface Builder files. These are sometimes called nib or zib files and end with an .xib extension. All of the screens and layout are done with Objective C code and not interface builder files. This means you won't be able to use Interface Builder (IB) to manipulate files in your project.
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
12/29/11 08:34 AM (14 years ago)
So how does this method work above. If it says use the build interface method. I have a tiny tiny, almost none, coding skills.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/30/11 04:05 AM (14 years ago)
Hi @Annondale. Not sure what you're asking about 'how it works.' I was just mentioning that no XIB files are used in BT projects. You asked how to 'open' BT_applications. I'm not sure what you're referencing here. Maybe you mean once you open the project in Xcode. Makes sense. You don't need to configure or change any of the layout options in Xcode. Each screen in your app is configured using your online control panel. You make changes in your control panel and the code in your project does the layout. Not sure how else to explain it? Maybe see the first few pages of the help docs for v1.5 apps, it explains it in a bit more detail.
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
12/30/11 07:08 AM (14 years ago)
Sorry. I got it now. I thought I needed to use Xcode but in fact, I just need to modify the source folders. It has just clicked. Thanks
 

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.