0

I need to implement terminateWithSuccess. I have tried this options unrecognized selector sent to instance and also

AppDelegate *myDelegate = [[[AppDelegate alloc]init]autorelease];
 [myDelegate terminateWithSuccess];

any of you knows how can implement terminateWithSuccess without any error?

I really appreciate your help.

Community
  • 1
  • 1
Juan
  • 627
  • 2
  • 9
  • 27

1 Answers1

1

Call it this way:

[[UIApplication sharedApplication] terminateWithSuccess];

onnoweb
  • 3,038
  • 22
  • 29