【发布时间】:2014-05-13 13:18:50
【问题描述】:
在特定时间从后台打开我的应用程序..
想做这样的事情
- (void)applicationDidEnterBackground:(UIApplication *)application
{
timer = [NSTimer scheduledTimerWithTimeInterval:10
target:self
selector:@selector(timerFired:)
userInfo:nil
repeats:NO];
}
- (void)timerFired:(NSTimer*)timer
{
NSLog( @"yes it is running...");
PickUpCallViewController *call=[[PickUpCallViewController alloc]initWithNibName:@"PickUpCallViewController" bundle:nil];
navi=[[UINavigationController alloc]initWithRootViewController:call];
[[navi navigationController] setNavigationBarHidden:YES animated:YES];
window.rootViewController = navi;
[window makeKeyAndVisible];
}
【问题讨论】:
-
这是不可能的。按照苹果的规定,未经用户许可,不得打开APP。
-
:( .. 任何技巧...做到这一点
-
进行 WEB SERVICE 调用并发送推送通知。
标签: ios objective-c xcode5 nsnotifications localnotification