Apple Watch Development Quick Start tutorial

Source: Internet
Author: User

Apple Watch Development Quick Start tutorial


Probation:http://pan.baidu.com/s/1eQ8JdR0

Description: Apple provides a new development framework for watch WatchKit. This tutorial is the first Apple Watch development tutorial in China to fully explain all aspects of watchkit, helping readers to master watch development methods and processes more quickly.

Directory

The 1th chapter of development Environment--xcode 1

1.1 Apple account 1

1.1.1 Apple account member category 1

1.1.2 Sign up for a free Apple account 1

1.1.3 Registration fee for Apple account 4

1.2 Xcode download and installation 6

Download and install Xcode 6 in the 1.2.1 APP store

1.2.2 Other websites Download and install Xcode 10

1.3 Apple Account bindings 11

1.4 Download and Installation of components 12

1.5 opening Xcode 14 for the first time

1.6 Xcode Interface Introduction 16

1.6.1 Navigation window 17

1.6.2 component Windows 18

1.6.3 editing Windows 19

1.6.4 target window 20

2nd. Writing the first iwatch application 21

2.1 Iwatch Introduction 21

Advantages and Disadvantages of 2.2 iwatch 21

2.2.1 Iwatch advantages 21

2.2.2 Iwatch disadvantage 24

2.3 Classes used to develop iwatch applications 24

2.4 Programming the first program 25

2.4.1 Creating a Project 25

2.4.2 Adding a Watch Application object to the project 27

2.4.3 Adding Watch App object Introduction 28

2.4.4 running the program 29

2.4.5 Editing interface 32

2.4.6 Writing code 35

2.5 Debug Program 39

2.6 Using the Help document 41

The 3rd chapter of the interface Design 43

3.1 Tags 43

3.1.1 Adding tags to the interface 43

3.1.2 Interface mode Settings tab 47

3.1.3 Using code to set a label 60

3.1.4 to load a custom font for a label 73

3.2 Image 79

3.2.1 Adding images to the interface 79

3.2.2 Interface mode to set image objects 80

3.2.3 using code to set up an Image object 85

3.3 Dividing line 91

3.3.1 Adding a split line to the interface 91

3.3.2 Interface mode set split line 92

3.3.3 using code to set up split lines 94

4th Chapter Interface Design two 95

4.1 Table 95

4.1.1 Adding tables to the interface 95

4.1.2 Interface mode Setting Table Object 96

4.2 Filling Table 98

4.2.1 Filling text content 98

4.2.2 Filling an image 102

4.3 working with Tables 104

4.3.1 response selected row 105

4.3.2 Adding rows 106

4.3.3 Deleting rows 107

4.3.4 Get row count 109

4.3.5 scrolling line 110

4.4 Set of objects 111

4.4.1 Adding a group object to the interface 111

4.4.2 Interface Mode setting Group object 112

4.4.3 Setting a group object using code 116

Chapter 5th user interaction 121

5.1 Switch 121

5.1.1 Adding a switch object to the interface 121

5.1.2 Interface Mode setting switch object 122

5.1.3 Setting a Switch object with code 124

5.1.4 Response Switch Object 129

5.2 Thumb 134

5.2.1 Adding a switch object to the interface 135

5.2.2 Interface mode set slider object 136

5.2.3 using code to set the slider Object 139

5.2.4 Response Slider Object 143

5.3 Button 144

5.3.1 Adding a Button object to the interface 145

5.3.2 Interface mode set slider object 146

5.3.3 using code to set a button object 147

5.3.4 Response button Object 150

6th Date Time and timer 153

6.1 Date Time 153

6.1.1 Adding date-time objects to the interface 153

6.1.2 Interface mode set DateTime object 154

6.1.3 using code to set date- time Objects 157

6.2 Timer 161

6.2.1 adding timers to the interface 161

6.2.2 Interface Mode setting timer object 162

6.2.3 Setting a Timer object with code 165

6.3 Realizing the Chronograph function 167

6.3.1 using the interface mode Timing 167

6.3.2 Using code timing 168

7th. Map and menu 171

7.1 Adding a map to the interface 171

7.2 Setting the Map object in the interface mode 172

7.3 Setting the display area of the map 173

7.4 Adding/removing annotations 174

7.4.1 Adding a system's own callout 174

7.4.2 Adding a custom callout 176

7.4.3 Deleting a callout 177

7.5 Getting the current position 178

7.6 Adding menus to the interface 184

7.7 Setting Menu items 185

7.7.1 Interface Mode setting menu item 186

7.7.2 using code to set menu items 188

7.8 Adding a menu item 189

7.8.1 Interface mode Add menu item 189

7.8.2 adding menu items using code 191

7.9 Response menu item 191

7.9.1 interface mode Add a menu item implementation response 192

7.9.2 using code to add a menu item implementation response 195

7.10 Deleting a menu item 198

8th three kinds of interface controller 200

8.1 Interface Controller 200

8.1.1 Adding interface Controller 200

8.1.2 Interface Mode setting Interface Controller Interface 203

8.1.3 using the code to set the interface Interface Controller 206

8.2 Navigating the interface Controller 207

8.2.1 adding a browser interface Controller 207

8.2.2 Interface mode set interface for browser interface Controller 211

8.3 Notification Interface Controller 213

8.3.1 Adding a notification interface Controller 214

8.3.2 interface mode settings Notification Interface Controller Interface 217

8.4 Interface Navigation 222

8.4.1 using drag mode 222

8.4.2 using code mode 230

9th Localization 242

9.1 Creating an application with multiple languages 242

9.2 Localization Resources 251

9.3 Regional format 253

10th Advanced Application 258

10.1 Nine grid 258

10.2 Audio player 264

10.3 Weather Forecast 268

10.4 iwatch control iphone 272


Apple Watch Development Quick Start tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.