Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建一个应用程序,它要求用户在第一次使用该应用程序时输入某些值。带有 4 个 UITextField 和一个 UIPicker 的设置屏幕。稍后可以使用主屏幕上的按钮访问此设置视图。有人请提出一些想法
谢谢
使用 NSUserDefaults 并设置一个 BOOL 或一个 NSDate 来表明你的应用程序已经被第一次使用。
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"firstUse"]