A TOWN CODERS Forum Index A TOWN CODERS
something
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 




David's Travails.

 
Post new topic   Reply to topic    A TOWN CODERS Forum Index -> Random
View previous topic :: View next topic  
Author Message
joulesqrd



Joined: 16 Jun 2011
Posts: 7
Location: United States

PostPosted: Thu Jun 16, 2011 9:00 am    Post subject: David's Travails. Reply with quote

Talk! Oh the pain of iphone coding.
Back to top
View user's profile Send private message AIM Address
thedavidke



Joined: 16 Jun 2011
Posts: 1
Location: United States

PostPosted: Thu Jun 16, 2011 7:43 pm    Post subject: Reply with quote

So I found a site that teaches how to make a button switch screens and I wrote up most of the code for that except the mainwindow.xib file is supposed to draw from a rootviewcontroller.xib file. This is done by setting the class of the mainwindow.xib file as a rootviewcontroller file but the linking is not working. =/
_________________
Hi
Back to top
View user's profile Send private message
drpizza
Site Admin


Joined: 14 Jun 2011
Posts: 2

PostPosted: Fri Jun 17, 2011 8:05 am    Post subject: Reply with quote

I don't know why the linking is so weird (Ctrl drag) for David. His XIB files are named differently from the H and M files, maybe that's why. xcode 4 is pretty reliable at this. worst case you can always link by hand to look at the code and better understand officially how everything works
Back to top
View user's profile Send private message
joulesqrd



Joined: 16 Jun 2011
Posts: 7
Location: United States

PostPosted: Fri Jun 24, 2011 6:55 am    Post subject: Reply with quote

I figured out why it wasn't working by comparing david's workign version with my non working version.

Basically, in the main.xib, the "app delegate" should actually be linked to "window" for "window" and the toher one should be linked to "controller view" whereas the "fileowner" for the main.xib should be linked to the app delegate.

Confusing, but ask if you're confused! I think our default linking just wasn't set correctly. I don't know how david's doing it over 5 times got it to work tho haha.
Back to top
View user's profile Send private message AIM Address
Free Forum






PostPosted:      Post subject: ForumsLand.com

Back to top
Display posts from previous:   
Post new topic   Reply to topic    A TOWN CODERS Forum Index -> Random All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosted by ForumsLand.com - 100% free forum. Powered by phpBB 2.