- 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.
- Android Wearable Programming
- Modular Programming with Python
- Microsoft Dynamics 365 Extensions Cookbook
- PHP程序設計(慕課版)
- Unity 5.x By Example
- HTML5從入門到精通(第4版)
- Clean Code in C#
- SciPy Recipes
- 代碼閱讀
- 邊玩邊學Scratch3.0少兒趣味編程
- Developing Java Applications with Spring and Spring Boot
- 算法精解:C語言描述
- 零基礎PHP從入門到精通
- 美麗洞察力:從化妝品行業看顧客需求洞察
- 從零開始學UI設計·基礎篇