Grand Central Dispatch, Background Processing, and App State Management
1. Improving App Responsiveness with UI Updates
When building and running an app, initially, there were some issues like the button getting stuck in a highlighted position after being touched. To enhance the GUI, we can take the following steps:
1. Add a UIActivityIndicatorView :
- First, add a property declaration for it at the top of ViewController.swift :
class ViewController: UIViewController {
@IBOutlet var startButton : UIButton!
@IBOutlet var resultsTextView : UITextView!
@IBOutlet var spinner : UIActivityIndicatorView!
}
- Then, open `Main.Storyboard`, locate an A
超级会员免费看
订阅专栏 解锁全文
106

被折叠的 条评论
为什么被折叠?



