Discussion Forums  >  Uncategorized

Replies: 4    Views: 187

Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
12/05/11 08:05 AM (14 years ago)

using UI Builder in Xcode with BT

Has anyone combined their BT interface with Xcode's UI Builder? I was thinking of trying to use the picker wheel aproach to menu screens. Not that this is a big deal, I am more trying to tip my toes into coding. My thoughts were that I may be able to build a simular menu in Xcode and then copy the code and replace the code in my built application. Of course I would have to tie up the actions, but I would think this may help me understand a little better how the code works. Anyone have any apps that combine the two? Any hints, or best place to start? Thanks, Jim
 
Vali
buzztouch Evangelist
Profile
Posts: 193
Reg: May 22, 2011
Bucharest
5,830
like
12/05/11 08:50 AM (14 years ago)
Hi there! BT does not use Interface Builder to output the screens that appear in your app. Instead, they are built dynamically using the config file. Take a look at this topic: http://www.buzztouch.com/forum/thread.php?tid=6F7A021E019570EFB638102&status=&searchInput=xib&sortColumn=FT.dateStampUTC&sortUpDown=DESC¤tPage=1&doViews=1 BR, Vali
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
12/05/11 09:18 AM (14 years ago)
Ah, that makes sense. How else could we make dynamic changes. I might do some experimenting to see if I can point back to a static menu within xcode during the program, not sure if it is possiable to bounce back and forth. (I am sure you can, but with my limited knowledge, it my prove too tough) It's fun to try anyway... Thanks!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/05/11 09:30 AM (14 years ago)
Good discussion here. We could have (and agruably should have?) set this up originally to use .XIB interface files for the layout. There are a few ways we could have done it this way from the beginning. We didn't because as easy as they seem, they are super-easy to break if you're unsure of all the connections and how it works. If you want to use IB to make an interface, you could try this: a) Make a new IB file and layout a screens. Tons of online tutorials for this. b) Create a class file to support this new screen. The class file must be an instance of a UIViewController (not a UIView). Set this UIViewController as the class in that contrls your layout, this is in Interface builder. c) Hack around a bit in the BT_viewControllerManager.m file. Specifically, you'll want to re-create the handleTapToLoadScreen method. This is the method that loads all the screens when you tap a button or an item. The idea is that you'll load an IB file instead of instantiating an Objective C Class file. Something like 'init with nib name' .... This is very doable but will take some patience, skill, and understanding. We may or may not attempt to support this in the future. Up in the air (like everything).
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
12/05/11 09:42 AM (14 years ago)
Thanks David! I will do some experimenting on a basic level and see what I come up with. The process you have there seems straight forward. Whats the worst that can happen? lol Jim
 

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.