View previous topic :: View next topic |
Author |
Message |
joulesqrd
Joined: 16 Jun 2011 Posts: 7 Location: United States
|
Posted: Thu Jun 16, 2011 9:00 am Post subject: David's Travails. |
|
|
Talk! Oh the pain of iphone coding. |
|
Back to top |
|
 |
thedavidke
Joined: 16 Jun 2011 Posts: 1 Location: United States
|
Posted: Thu Jun 16, 2011 7:43 pm Post subject: |
|
|
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 |
|
 |
drpizza Site Admin
Joined: 14 Jun 2011 Posts: 2
|
Posted: Fri Jun 17, 2011 8:05 am Post subject: |
|
|
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 |
|
 |
joulesqrd
Joined: 16 Jun 2011 Posts: 7 Location: United States
|
Posted: Fri Jun 24, 2011 6:55 am Post subject: |
|
|
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 |
|
 |
Free Forum
|
|
Back to top |
|
 |
|