Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
iOS Development
Help Loading Different Views from other class view controllers
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Nethfel" data-source="post: 1226044" data-attributes="member: 89124"><p>I looked at all of your code..</p><p></p><p>It's coded in a style I don't personally prefer, but after reading it for a while and seeing what you are trying to accomplish these changes:</p><p></p><p>1) in SaveViewController.xib - delete the object in there that is a FinalViewController; it's not needed and creates an improper reference (it will instantiate a new FinalViewController rather then your FinalViewController you're attempting to work with).</p><p></p><p>2) In SaveViewController.m - in the method tapCreateNewChar change:</p><p>[code]</p><p>if([txtNewChar.text length]<=1){</p><p> [finalViewController LoadHomeWorld];</p><p> }</p><p>[/code]</p><p></p><p>to</p><p></p><p>[code]</p><p>if([txtNewChar.text length]>=1){</p><p> [finalViewController LoadHomeWorld];</p><p> }</p><p>[/code]</p><p></p><p>3) Open up FinalViewController.xib, right click on the ViewController-Save object, in the Outlets, link the FinalViewController to the File's Owner (which will tell it that the FinalViewController instance should be associated with its IVar)</p><p></p><p>I think that's all of the changes I made. appear to fix the problem. I'm attaching screen shots of the two changes in the xib files... I've also uploaded the screen I get to now after keying in a name (yes, that one button is off the screen so you'll need to adjust your nib a little...)</p><p></p><p>[ATTACH=full]14862[/ATTACH]</p><p></p><p>[ATTACH=full]14863[/ATTACH]</p><p></p><p>[ATTACH=full]14864[/ATTACH]</p></blockquote><p></p>
[QUOTE="Nethfel, post: 1226044, member: 89124"] I looked at all of your code.. It's coded in a style I don't personally prefer, but after reading it for a while and seeing what you are trying to accomplish these changes: 1) in SaveViewController.xib - delete the object in there that is a FinalViewController; it's not needed and creates an improper reference (it will instantiate a new FinalViewController rather then your FinalViewController you're attempting to work with). 2) In SaveViewController.m - in the method tapCreateNewChar change: [code] if([txtNewChar.text length]<=1){ [finalViewController LoadHomeWorld]; } [/code] to [code] if([txtNewChar.text length]>=1){ [finalViewController LoadHomeWorld]; } [/code] 3) Open up FinalViewController.xib, right click on the ViewController-Save object, in the Outlets, link the FinalViewController to the File's Owner (which will tell it that the FinalViewController instance should be associated with its IVar) I think that's all of the changes I made. appear to fix the problem. I'm attaching screen shots of the two changes in the xib files... I've also uploaded the screen I get to now after keying in a name (yes, that one button is off the screen so you'll need to adjust your nib a little...) [ATTACH=full]14862[/ATTACH] [ATTACH=full]14863[/ATTACH] [ATTACH=full]14864[/ATTACH] [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
iOS Development
Help Loading Different Views from other class view controllers
Top