2012-03-12 47 views

回答

5

对不起,但你在iPhone上无法完成。代表您的应用程序的主类称为UIApplication。它是UIKit的一部分。

听起来好像您的客户端是Android用户,因为Android通过它的Service类提供了此功能。但是iOS没有这种类型。您现在面临的挑战是与客户打交道,而不是与软件打交道!

2

无法完成任何官方Appstore应用程序。

1

您可以尝试将exit(0);放在applicationDidFinishLaunching:withOptions:的末尾,但这肯定会让您的应用拒绝

如果你这样做,你还必须以相同的方法安排你的通知。 Lke:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 

    //do your stuff 

    exit(0); //this line kills the app 
    return NO; //this line is just to make compiler happy 
} 

另请参阅How send application to background when install on device?,今天有人问。

相关问题