- Building Apple Watch Projects
- Stuart Grimshaw
- 188字
- 2021-07-16 13:00:12
Ideas for self study
Before moving on, it's a good idea to play around with the features and code we have covered in this chapter and explore what happens when changing some of the details to see what effect it has on the app and its interface.
One excellent candidate is the borderGroup
object we used to fake the button border. If you option-click on the declaration at the top of the InterfaceController
code, you will be presented with a pop-up window that provides you, with among much other useful information, a list of WKInterfaceGroup
settable properties which are available to you. Start by typing self.borderGroup.set
and let Xcode's code completion show you what's on offer:

A Command-click on one of the UIColor methods such as .redColor()
will take you to a list of convenience methods which create a limited number of preset colors. Why stick to a choice of three? Why not 10? (But you'll have to scroll!)
You might also like to print()
a warning to the console when the modal dialog returns nil
after you select Cancel instead of a color from the modal view.
- DevOps with Kubernetes
- GeoServer Cookbook
- LabVIEW2018中文版 虛擬儀器程序設(shè)計(jì)自學(xué)手冊(cè)
- Instant Apache Stanbol
- C++面向?qū)ο蟪绦蛟O(shè)計(jì)(微課版)
- PowerCLI Cookbook
- Mastering Natural Language Processing with Python
- 算法基礎(chǔ):打開(kāi)程序設(shè)計(jì)之門(mén)
- Unity Virtual Reality Projects
- Responsive Web Design with HTML5 and CSS3
- Visual C++串口通信技術(shù)詳解(第2版)
- MySQL數(shù)據(jù)庫(kù)管理與開(kāi)發(fā)實(shí)踐教程 (清華電腦學(xué)堂)
- 寫(xiě)給大家看的Midjourney設(shè)計(jì)書(shū)
- Mobile Forensics:Advanced Investigative Strategies
- Web前端開(kāi)發(fā)最佳實(shí)踐