开发者

How to pop up a full screen window in ios

I want to write a ios app that can pop up a full screen windows (e.g. to play a video) at a specify ti开发者_如何学Pythonme, it seems UILocalNotification cant' help. anybody have any idea?


You can present a modalView while at the same time, removing the UIStatusBar


From within your view controller, you can call

- (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated

Which will display the specified view controller on top of the current one modally.

To do this on a timer interval (which is what I think you're implying you want to do?) you'd do the following:

-(IBAction)showModalWithDelay {
    [NSTimer scheduledTimerWithTimeInterval:.06 target:self selector:@selector(showModal) userInfo:nil repeats:NO];
}

-(void)showModal {
    [self presentModalViewController:modalViewController animated:YES];
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜