Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-06-2008, 11:54 AM   #1 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 22
Default Connecting a view in the tabs to a controller.m/h file

Hello,

I am experienced with many programming languages, but new to C# and the iPhone SDK as well as Macs. I have watched many tutorials and have been successful so far in creating a basic application, but I am having trouble with one thing in particular:

I have created a UITabBar wherein each of the view controllers loads from a separate .xib file. So far, each of the .xib files is properly loaded and displays the UI which I have designed when I test the application. However, in the first such .xib file, I am attempting to use a separate class to control the view, in order to contain the code for this tab - in a "FirstTabController.m" and "FirstTabController.h" file. I created these files, as specified in tutorials, by creating a "New File" and selecting the "UIViewController subclass" option. In the interface builder, I changed the Class of the File's Owner (in the .xib for the first tab) to this new "FirstTabController". Finally, I un-commented the "viewDidLoad" method in this class and set a breakpoint within the function. When I run the application, the break is not hit. It seems that operation of the first tab is never passed to this new class.

Hopefully these images can help illustrate my meaning:
http://inzania.com/temp/iphone-1.png
http://inzania.com/temp/iphone-2.png
http://inzania.com/temp/iphone-3.png

I hope that explanation made sense. I have tried playing around with the linking of the UI components, but I'm still not entirely sure what I'm doing. I would really appreciate any help that anyone can offer; if I can provide additional details, please let me know. Thank you for your time.

Last edited by inZania; 10-06-2008 at 11:58 AM.
inZania is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 252
23 members and 229 guests
ADY, bookesp, chillyh, ckgni, dacapo, Dani77, Davey555, Desert Diva, glenn_sayers, HemiMG, JasonR, LEARN2MAKE, M.A.S., marshusensei, mer10, nobre84, prchn4christ, Raggou, Rudy, ryantcb, themathminister, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:36 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0