官术网_书友最值得收藏!

Chapter 2. Hello Watch

Time to fire up the engine and get a feel for some of the new tools we have at our disposal, courtesy of Apple's Xcode development environment. Once we get started, you will recognize much of what you already know through using Xcode and Swift to build apps for iOS, whether for iPhone, iPad, or universal apps for both. The project structure will be familiar to you, and everything that you would expect to see in a purely iOS project will be present.

If you have so far been developing for OS X and not iOS, you will notice many similarities but also many differences to an OS X project. Not a problem. You know Swift already, we will be setting up the projects step by step, and we are all new to WatchKit.

Briefly, we will learn how to do the following:

  • Start and set up a project using an Xcode template
  • Create some UI elements
  • Get the app running on the Watch Simulator
  • Add some simple animation to the UI
  • Get basic input from the user

By the end of this chapter you will be looking at a simple but functioning WatchKit app, installed and running on the Watch simulator.

主站蜘蛛池模板: 清丰县| 灌阳县| 正宁县| 宁远县| 镇原县| 阿克| 安泽县| 平顺县| 尼木县| 灵川县| 锦州市| 庄河市| 旬邑县| 全椒县| 灵宝市| 修水县| 宜丰县| 西城区| 康乐县| 石台县| 和静县| 普兰县| 栾川县| 凤台县| 米脂县| 枣庄市| 青海省| 怀宁县| 青海省| 门头沟区| 通州市| 兴义市| 广西| 清流县| 四会市| 峨眉山市| 昌黎县| 闵行区| 长泰县| 广安市| 贵定县|