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个UIButton使用以下方法:
UIButton
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:0739421700"]];
如何让用户通过另一个更改电话号码UIButton?因此,当应用程序被终止时,按钮仍然包含该数字。提前致谢!
NSUserDefaults是拥有简单持久数据的好方法。您可以像现在一样获取字符串,然后使用它setObject:forKey:来存储它们。
setObject:forKey: