Suspend the application

There is a private instance method for UIApplication:

The following code would work, (tested in an iPhone 3GS):

UIApplication *app = [UIApplication sharedApplication];
[app performSelector:@selector(suspend)];

Leave a Comment