Xcode build issues and the sim only shows the splash/load screen??

Hi. have built an app that turns page to page, 3rd page has 4 buttons on it each button leads to a uiwebview. all my code has no issues. i believe i've coded it right.


My issue is when it builds it only builds the loading/splash screen, it used to load the 3 screens, the next buttons worked and the back buttons worked. then i built the page with the 4 buttons to webviews. it worked.


I'm getting a 'thread signal 1 sigabrt issue when the sim loadsUser uploaded file



Can anyone help solve this.


Also when coding a back button do you have to #import "said view controller.h" that you want to go back to in the .m file. I have followed you tube tutorials so far. but now they aren't helping. heres how my code looks for the back/forward buttons etc. (the buttons with names lead to the webview pages).


User uploaded file


User uploaded file


I type the -(IBAction) in the .h file. then the code in .m. but am i right to import the other .h files in the top of the .m?



My app might run ok when i get past the loading screen issue!!


Thanks for looking !!

MacBook Pro, Mac OS X (10.7.4)

Posted on Mar 3, 2013 8:30 AM

Reply
7 replies

Mar 4, 2013 10:39 AM in response to Craigv513

I was referring to the empty category


@interface OurDesignsViewController ()

@end


this is unnecesssary - though it's not the cause of your problems.


Yes, you do need to import the other header files. Your creating an instance of that class.


I assume you've connected your IBActions in interface builder?


the snippets you've provided look ok. - check your interface builder connections.

Mar 4, 2013 11:50 AM in response to disguise

Yes I double checked all the buttons and outlets. They all worked until it froze on the load screen so I can only assume they still work.

I'm assuming that I'm right about coding a back button. You write the code and import the .h for the view controller you want to go back to?


As for the empty category. That was on the file when I first went to it so I just left it there.

Mar 4, 2013 12:17 PM in response to Craigv513

I notice in your first screen shot that an exception was thrown by your app.


try surrounding your UIApplicationMain call with a try catch block - e.g.


    int retVal =0;    @autoreleasepool{             @try{                      retVal =UIApplicationMain(argc, argv, nil, NSStringFromClass[AppDelegate class]);             }        @catch(NSException*exception){                      NSLog(@"Craig's exception - %@",[exception description]);                      exit(1);             }    }    return retVal;

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Xcode build issues and the sim only shows the splash/load screen??

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.