IPad storyBoard not working

I started with a Master-Detail app in XCode 4.2.

This is my first app to use storyboard, so I knew I would be missing something along the way.

Ok, so I started using my app to code my main controller and my part controller.

It works fine on the iPhone simulator, but I can't get it to work on the iPad simulator and I don't know why. Because the only thing that seems to me in the log is (gdb) and this shows me the following line on AppDelegate.h:

return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

      

I know from the beginning I missed some of the testing on the iPad simulator, but is there a way to find out exactly what is going on?

+3


source to share


1 answer


I started deleting the code to see what was going on. I realized that since the iPad storyBoard is also loading the detail view, it "crashes" because I did not have the detail loaded. But no eroses will appear ...

So, I just added some code to check if the detailed views were ready to be displayed.



if (self.detailDict) {
    // do something with the data
}

      

After that, I started working. And this code does not interfere with the iPhone, as the detailDict will be properly passed when the table cell is listened to.

0


source







All Articles