My View disappears... tableViewController load viewController, but the View shows black. Why?

Go To StackoverFlow.com

1

Look this situation...

  • My View disappears.

Why ???

http://www.4shared.com/photo/9XIMsP9a/AppConcDuvida.html

2012-04-05 15:50
by user1182833


0

Creating DetalhesViewController in code is unlikely to work correctly.

If you're going to use a storyboard and segues, then you should be making your connections there and configuring the new controller in prepareForSegue instead of didSelectRowAtIndexPath.

2012-04-05 16:00
by Phillip Mills
Look the code:

http://www.4shared.com/photo/1iRYibE-/notworking2.htm - user1182833 2012-04-05 16:19

I saw that code in your first image. Don't use that. Make your connection in the storyboard and use prepareForSegue: instead - Phillip Mills 2012-04-05 16:24
Look this…

I need…

http://www.4shared.com/photo/bMhvRNgN/ihavetodothis_2.htm - user1182833 2012-04-05 17:16

You seem to be saying that you want to use the wrong code in the wrong place but have it work anyway. I don't know how to help with that. [shrug - Phillip Mills 2012-04-05 17:27
If this is the wrong way, what is the correct way - user1182833 2012-04-05 18:16


0

You should instantiate your view controller from storyboard.

DetalhesViewController *detailViewController = [self.storyBoard instantiateViewControllerWithIdentifier:@"controllerIdentifier"];
self.navigationController push:detailViewController animated:YES];
2012-04-05 18:23
by NeverBe
Ads