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.
如何向我的应用程序添加两个按钮来增加/减少从数据库加载到标签的文本的字体大小?
解决方案是使用带有以下代码的 UIStepper:
- (IBAction)ChangeFontSize:(id)sender { [labelText setFont:[UIFont systemFontOfSize:[fontStep value]]]; }