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

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.

主站蜘蛛池模板: 灵武市| 阳春市| 屯昌县| 乌兰浩特市| 永济市| 东丽区| 泗水县| 青海省| 龙门县| 乌什县| 武隆县| 宜州市| 怀安县| 樟树市| 湘潭市| 林周县| 宜兰县| 石台县| 香港 | 瓮安县| 铁岭县| 宜川县| 旌德县| 德格县| 临澧县| 昌吉市| 乌拉特后旗| 密云县| 项城市| 荣成市| 叙永县| 永昌县| 峨眉山市| 泗阳县| 宜阳县| 南陵县| 娄底市| 和平区| 兴山县| 吉首市| 永川市|