开发者

Any way to show a view only once the app is used?

开发者 https://www.devze.com 2023-01-26 05:35 出处:网络
I am creating an app which requires the users to enter certain values when the app is used for the first time.

I am creating an app which requires the users to enter certain values when the app is used for the first time. A settings screen with 4 UITextFields and a UIPicker. This settings view can be accessed later using a button from the mainscreen. Somebody please su开发者_开发百科ggest some ideas

Thanks


Use the NSUserDefaults and set a BOOL or a NSDate to indicate that you app has been used for the first time.

[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"firstUse"]

0

精彩评论

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