开发者

Presenting view from app delegate

开发者 https://www.devze.com 2023-04-03 03:54 出处:网络
I am working on a project in which I need to present login page each time the app enters fore ground from 开发者_如何学Cback ground. I wanted to present a model viewcontroller but Model view is not su

I am working on a project in which I need to present login page each time the app enters fore ground from 开发者_如何学Cback ground. I wanted to present a model viewcontroller but Model view is not supported.

Is there any other way I can do this?


Register for UIApplicationWillEnterForegroundNotification. Once you get the notification, show your login view controller using [self presentmodelviewcontroller:view animated:YES];

0

精彩评论

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