-1
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.

   self.window.rootViewController = self.viewController;    // program recieve signal "SIGABRT".
    [self.window makeKeyAndVisible];
    return YES;;
}

i was reading some images from a URL and it worked but suddenly this error showed up .

Gray
  • 6,916
  • 2
  • 28
  • 49
  • 1
    Do you have any questions? – Matthias Mar 03 '13 at 16:37
  • i read that this kind of error are related to the abort function or something . but i dont have such function in my application . – Fadi Barakat Mar 03 '13 at 16:39
  • http://stackoverflow.com/questions/8072135/how-to-track-down-cause-of-sigabrt/8072273#8072273 – Eugene Mar 03 '13 at 16:51
  • This kind of error occurs because you screwed something up. Usually it's a garbaged pointer or some such, often having to do with storage management (either explicit retain/release or ARC). I just yesterday had one where I'd erroneously coded `[somePtr dealloc]` instead of `[somePtr release]` in a dealloc method. But it could be many other things. – Hot Licks Mar 07 '13 at 18:07

2 Answers2

1

you might have done something with your line where you initialize your viewController

self.viewController=[ViewController alloc]initWithNibName:@"ViewController" bundle:nil]; 

or you might have not connected viewController as outlet properly to the mainWindow.xib

nsgulliver
  • 12,647
  • 23
  • 42
  • 63
0

I have found the problem. You have to check your IBOutlets, check if all of them are connected and if any one of them has a ! next to it then you have to delete the outlet.

Taryn
  • 234,956
  • 54
  • 359
  • 399