打造你的第一個iphone app

223
蝨ጱᒫӞ㮆iPhone App (犥ੜሴৼ襎ৼ䨗傶) 拻䒍物笳 2015/12/12

Upload: -pan

Post on 24-Jan-2017

1.101 views

Category:

Mobile


2 download

TRANSCRIPT

Page 1: 打造你的第一個iPhone APP

iPhoneApp( )

2015/12/12

Page 2: 打造你的第一個iPhone APP

https://www.youtube.com/watch?v=o2tlr49GmJ4

Page 3: 打造你的第一個iPhone APP

App :iPhone.iPad

Swift

: : App

App

Page 4: 打造你的第一個iPhone APP

20 APP

Page 5: 打造你的第一個iPhone APP

http://www.facebook.com/iphone.peterpan

http://deeploveapple.blogspot.tw

[email protected]

https://github.com/AppPeterPan/It-s-all-about-App/wiki/It's-all-about-App

FB

blog

iOSwiki

medium https://medium.com/@apppeterpan

http://eepurl.com/bJhct9

http://apppeterpan.strikingly.com

iOS APP

Page 6: 打造你的第一個iPhone APP

App

https://www.youtube.com/watch?v=xr5JQdcqWyM

Page 7: 打造你的第一個iPhone APP

App• , Model

• : ,

••••••

Page 8: 打造你的第一個iPhone APP

App

mini.Hana Penny V.Khttps://www.youtube.com/watch?v=_sQSXwdtxlY

Page 9: 打造你的第一個iPhone APP

iOS App• 0.99 ( )

•• iPhone, iPod touch, iPad, iPad mini,

Apple Watch, Apple TV, Mac, CarPlay

•• Apple Device

• , 143 ( 99 / 0.7 / 0.99 = 142.85 )

• SDK

Page 10: 打造你的第一個iPhone APP

iOS App Apple device

Page 11: 打造你的第一個iPhone APP

• 4G, WiFi

• GPS

• &

• OpenGL ES 2.0

• bluetooth

iOS Apple Device• Apple Map

• In App Purchase buy from store Apple Pay

• ( sqlite & Core Data)

• HTML 5

• & 3D Touch

• (FB, Twitter, Weibo)

Page 12: 打造你的第一個iPhone APP

• iAD

• iCloud

• passbook

• &

• iMessage

• Retina Display (Retina HD)

• game center

• &

• (Newsstand)

• Siri

• email

• , & FaceTime

• &

• AirDrop

• Game Controller

• Peer-to-Peer Connectivity

iOS Apple Device

Page 13: 打造你的第一個iPhone APP
Page 14: 打造你的第一個iPhone APP

:

https://www.youtube.com/watch?v=umZvzuyMyHI

Page 15: 打造你的第一個iPhone APP

iOS 9

https://developer.apple.com/ios/

Page 16: 打造你的第一個iPhone APP

• ( iPhone 6 1G , 6s 2G)

• ( ex: )

• -

iOS App

Page 17: 打造你的第一個iPhone APP
Page 18: 打造你的第一個iPhone APP
Page 19: 打造你的第一個iPhone APP

• Mac

• PC Mac ( )

CPU

Page 20: 打造你的第一個iPhone APP

Macbook Air / Pro

:

App

Page 21: 打造你的第一個iPhone APP

Mac Mini

: 15,900

Page 22: 打造你的第一個iPhone APP

iMac & Mac Pro

iMac: App

Mac Pro:

Page 23: 打造你的第一個iPhone APP

iPhone , iPod touch, iPad Air, iPad mini, iPad Pro, Apple Watch,

Apple TV, CarPlay

Apple Device

Page 24: 打造你的第一個iPhone APP

••• iOS

• (ex: )

Page 25: 打造你的第一個iPhone APP

Device

http://en.wikipedia.org/wiki/List_of_iOS_devices

Page 26: 打造你的第一個iPhone APP

• iPhone 3.5 : 320 * 480 points ( 320 * 480 pixels)

• iPhone Retina : 320 * 480 points (640 * 960 pixels 3.5 ) 320 * 568 points (640 * 1136 pixels 4 ) 375 * 667 points (750 * 1334 pixels 4.7 )

• iPhone Retina HD: 414 * 736 points (1242 * 2208 pixels 5.5 )

• iPad iPad mini : 768 * 1024 points ( 768 * 1024 pixels )

• iPad Retina iPad mini Retina: 768 * 1024 points (1536 * 2048 pixels )

• iPad Pro (Retina) : 1024 * 1366 points (2048 * 2732 pixels )

• Apple Watch (Retina): 38mm: 136 * 170 points (272 x 340 pixels ) 42mm: 156 * 195 points (312 x 390 pixels )

Retina HD: 1 point = 3 * 3 pixelRetina: 1 point = 2 * 2 pixelnon-Retina: 1 point = 1 pixel

Page 27: 打造你的第一個iPhone APP

http://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions

Page 28: 打造你的第一個iPhone APP

iPhone 3.5 : 0.66

iPhone 4 4.7 5.5 : 0.56

iPhone : 4

iPhone App iPad 3.5

:

iPad: 0.75

Page 29: 打造你的第一個iPhone APP

10.10

10.11

Page 30: 打造你的第一個iPhone APP
Page 31: 打造你的第一個iPhone APP

XcodeApp StoreFree

Apple ID

https://itunes.apple.com/app/xcode/id497799835

Page 32: 打造你的第一個iPhone APP

Xcode beta

https://developer.apple.com/xcode/downloads/

beta

Page 33: 打造你的第一個iPhone APP

• (ex: )

• App (UI)

• (debug)

• (build) App

• App

• App

• App Store

Xcode IDE(Integrated Development Environment)

• App

• (Unit Test )

• (continuous integration)

• App (User Interface Testing)

• App

https://developer.apple.com/xcode/

Page 34: 打造你的第一個iPhone APP

(ex: )

Page 35: 打造你的第一個iPhone APP

App (UI)User Interface Interface Builder

Page 36: 打造你的第一個iPhone APP

App Debug navigator

Page 37: 打造你的第一個iPhone APP

App Instruments

Page 38: 打造你的第一個iPhone APP

Continuous Integration• build App

• simulator

• OS X Server

••• on commit ( )

• periodically ( )

https://www.youtube.com/watch?v=tU82vcYSF9Q

Page 39: 打造你的第一個iPhone APP

Continuous Integration

Page 40: 打造你的第一個iPhone APP

continuous integration

Page 41: 打造你的第一個iPhone APP

OS X Server

https://itunes.apple.com/app/os-x-server/id883878097

Page 42: 打造你的第一個iPhone APP
Page 43: 打造你的第一個iPhone APP

Apple

https://developer.apple.com

Page 44: 打造你的第一個iPhone APP

App

https://developer.apple.com/platforms/

Page 45: 打造你的第一個iPhone APP

https://developer.apple.com/library/

Page 46: 打造你的第一個iPhone APP
Page 47: 打造你的第一個iPhone APP

Apple ID

https://appleid.apple.com

Page 48: 打造你的第一個iPhone APP

Apple Developer

https://developer.apple.com

Free

Page 49: 打造你的第一個iPhone APP
Page 50: 打造你的第一個iPhone APP

https://developer.apple.com/membercenter/

Page 51: 打造你的第一個iPhone APP

• App Store ( iOS App, Mac App, Apple Watch App, tvOS App) ~ ?

• beta

• App (1000 ) ( Xcode 7 but )

https://developer.apple.com/programs/whats-included/

Page 52: 打造你的第一個iPhone APP

TestFlight

https://developer.apple.com/testflight

Page 53: 打造你的第一個iPhone APP

https://developer.apple.com/programs/enroll/

99( )

299

Page 54: 打造你的第一個iPhone APP

•• 99

• App

• App Store App seller name

Page 55: 打造你的第一個iPhone APP

device 100

2000

Page 56: 打造你的第一個iPhone APP

•• 99 299

• DUNS

• App Store App seller name

•• 299 :

•• App ( )

https://developer.apple.com/support/D-U-N-S/

Page 57: 打造你的第一個iPhone APP

App Seller Name

Page 58: 打造你的第一個iPhone APP

https://developer.apple.com/membercenter/

Page 59: 打造你的第一個iPhone APP
Page 60: 打造你的第一個iPhone APP

• App , , PM, Server ,

• App +

• App + App +

ios/Android(Windows) PHP/RoR/Python/ASP/Node.js

HTML / CSS/ JavaScript

photoshop/ illustrator/ sketch

Page 61: 打造你的第一個iPhone APP

Parse

https://www.parse.com

App

server

Page 62: 打造你的第一個iPhone APP

Wealthy

!

Page 63: 打造你的第一個iPhone APP

Idea App

Page 64: 打造你的第一個iPhone APP

App1

2

3App

(prototype)

App App

Page 65: 打造你的第一個iPhone APP

App1 2

3 App

4 5

App6

App App

Page 66: 打造你的第一個iPhone APP

Prototyping•• App

axure Balsamiq

http://www.balsamiq.comhttp://www.axure.com

POP

https://popapp.in

other: OmniGraffle InVision

Page 67: 打造你的第一個iPhone APP

•• photoshop illustrator Sketch

http://www.teehanlax.com/toolshttp://bohemiancoding.com/sketch/

Page 68: 打造你的第一個iPhone APP

ZEPLIN

https://zeplin.io

Page 69: 打造你的第一個iPhone APP

iOS Human Interface Guidelines

https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/

Page 70: 打造你的第一個iPhone APP

Apple Watch Human Interface Guidelines

https://developer.apple.com/watch/human-interface-guidelines/

Page 71: 打造你的第一個iPhone APP

Apple TV Human Interface Guidelines

https://developer.apple.com/tvos/human-interface-guidelines/

Page 72: 打造你的第一個iPhone APP

OS X Human Interface Guidelines

https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/

Page 73: 打造你的第一個iPhone APP
Page 74: 打造你的第一個iPhone APP
Page 75: 打造你的第一個iPhone APP

Swift

https://blog.alphacamp.co/2015/07/27/for-swift-beginners/

Page 76: 打造你的第一個iPhone APP

Swift• &

• ( javascript )

• : Playground

• App crash bug

• Objective-C

• iOS SDK (SDK: App )

• Objective-C

• iOS 7

Page 77: 打造你的第一個iPhone APP
Page 78: 打造你的第一個iPhone APP

playground

Page 79: 打造你的第一個iPhone APP

iOS 9 & iOS 8

https://developer.apple.com/support/appstore/

Page 80: 打造你的第一個iPhone APP

Objective-C !

Page 81: 打造你的第一個iPhone APP

Objective-C

App Objective-C

Objective-C

App Objective-C

Page 82: 打造你的第一個iPhone APP

App

https://blog.alphacamp.co/2015/08/10/how-to-learn-app-in-an-efficient-way/

Page 83: 打造你的第一個iPhone APP

App

https://blog.alphacamp.co/2014/12/23/beautiful-app-life/

Page 84: 打造你的第一個iPhone APP

Xcode

Page 85: 打造你的第一個iPhone APP

1. App

Page 86: 打造你的第一個iPhone APP

iOS watchOS tvOS OS X

2. template

Single View Application

Page 87: 打造你的第一個iPhone APP

3.

Page 88: 打造你的第一個iPhone APP

Language

Page 89: 打造你的第一個iPhone APP

Devices

Page 90: 打造你的第一個iPhone APP

• App iPhone iPad iPhone iPad

• : App iPad

• :

• Size

• App

Universal App

Page 91: 打造你的第一個iPhone APP

4.

Page 92: 打造你的第一個iPhone APP

?

https://www.youtube.com/watch?v=MKNrnSsIwf8

Page 93: 打造你的第一個iPhone APP

Xcode

Page 94: 打造你的第一個iPhone APP

Xcode1. 2. 3.

2

3

1

Page 95: 打造你的第一個iPhone APP

navigator areaproject

navigatorfind

navigator

8 navigator

Page 96: 打造你的第一個iPhone APP

editor area

ViewController.swift

Main.storyboard

Page 97: 打造你的第一個iPhone APP

App

Page 98: 打造你的第一個iPhone APP

1. App

( USB )

Page 99: 打造你的第一個iPhone APP

App

App

Page 100: 打造你的第一個iPhone APP

App Icon

Page 101: 打造你的第一個iPhone APP

App

Info Bundle Name

Page 102: 打造你的第一個iPhone APP

App Icon• png

• (iOS )

• 120 * 120 ( pixel) -> retina

• 180 * 180 (pixel) -> retina HD

Page 103: 打造你的第一個iPhone APP

(Preview)

Page 104: 打造你的第一個iPhone APP

App Icon

Page 105: 打造你的第一個iPhone APP

App Icon

Page 106: 打造你的第一個iPhone APP

1x, 2x, 3x

1x: retina 2x: retina 3x: retina HD

20*20 point

20 20 40 40 60 60 pixel

Page 107: 打造你的第一個iPhone APP

Launch Image (pixel)

iPhone Retina 3.5 640 * 960

iPhone Retina 4 640 * 1136

iPhone Retina 4.7 750 * 1334

iPhone Retina HD 5.5 1242 * 2208 , 2208 * 1242

iPad (iPad mini) 768 * 1024 ,1024 * 768

iPad (iPad mini) Retina 1536 * 2048 , 2048 * 1536

PNG

*

Page 108: 打造你的第一個iPhone APP

Launch Screen File

Page 109: 打造你的第一個iPhone APP
Page 110: 打造你的第一個iPhone APP

utility

App

Page 111: 打造你的第一個iPhone APP

storyboard App

Page 112: 打造你的第一個iPhone APP

Storyboard

Storyboard App

Storyboard

Page 113: 打造你的第一個iPhone APP

App - Scene - View Controller

Outline View

UI

Page 114: 打造你的第一個iPhone APP

UI

Page 115: 打造你的第一個iPhone APP

UI

Page 116: 打造你的第一個iPhone APP

document outline

What is View Controller ?

What is View ?

What is ?

Page 117: 打造你的第一個iPhone APP

• : (attribute & method)

• ( instance):

App

class & object

Page 118: 打造你的第一個iPhone APP
Page 119: 打造你的第一個iPhone APP

• (attribute) ,

• (method)

Page 120: 打造你的第一個iPhone APP

attribute:value

ex:

method:method

ex:

Page 121: 打造你的第一個iPhone APP

• method App

App

Page 122: 打造你的第一個iPhone APP

• UI

• UI

• UI UIView ( )

View

Page 123: 打造你的第一個iPhone APP

Monkey

People

( )(

Monkey People

Page 124: 打造你的第一個iPhone APP

MVC

Page 125: 打造你的第一個iPhone APP

iOS App

User Interface

CoreLogicData

Model View Controller (MVC)

Page 126: 打造你的第一個iPhone APP

MVC

model view

controller

Page 127: 打造你的第一個iPhone APP

MVC mini.Hana

model:

view:

controller:

(

Page 128: 打造你的第一個iPhone APP

• model view

• bug

• UI view

• controller

• model UI

• view controller

ex: controller, tab bar controller

MVC

Page 129: 打造你的第一個iPhone APP

Tab Bar Controller Table Controller

controller

Page 130: 打造你的第一個iPhone APP

• controllercontroller

• controller controllercontroller

controller

controller

App controller

Page 131: 打造你的第一個iPhone APP
Page 132: 打造你的第一個iPhone APP

Xcode

Utility

Debug

Page 133: 打造你的第一個iPhone APP

Inspector Pane,

Library Pane

Object Library (UI

Utility

Attributes Inspector, UI

Page 134: 打造你的第一個iPhone APP

Disable Size ClassesFile inspector

size

Page 135: 打造你的第一個iPhone APP

Disable Size Classes

size size

iPhone

Page 136: 打造你的第一個iPhone APP

iPhone

View ControllerAttributes inspector Simulated Matrics Size

:

size iPhone size

Page 137: 打造你的第一個iPhone APP

UI

attributes inspector

controller view

Page 138: 打造你的第一個iPhone APP

Attributes Inspector

UI

Page 139: 打造你的第一個iPhone APP

View

opacity:

Page 140: 打造你的第一個iPhone APP

Assistant editor

Page 141: 打造你的第一個iPhone APP

(Preview)

Page 142: 打造你的第一個iPhone APP

Page One

Page 143: 打造你的第一個iPhone APP

1. Object Library

label~

Page 144: 打造你的第一個iPhone APP

2. View

Page 145: 打造你的第一個iPhone APP

UI

Page 146: 打造你的第一個iPhone APP

iOS

(30, 60)

(0, 0)

(x, y)

Points

not retina: 1 pixelretina: 2 * 2 pixelretina HD: 3 * 3 pixel

point

Page 147: 打造你的第一個iPhone APP

2. Size inspector

1.

3. auto layout

Page 148: 打造你的第一個iPhone APP

label

Page 149: 打造你的第一個iPhone APP

1: 12: 20:

Page 150: 打造你的第一個iPhone APP

control + enter

Page 151: 打造你的第一個iPhone APP
Page 152: 打造你的第一個iPhone APP

Page Two

Page 153: 打造你的第一個iPhone APP

1.

Assets.xcassets

1x, 2x, 3x

Page 154: 打造你的第一個iPhone APP

2. Page Two controller

Page 155: 打造你的第一個iPhone APP

Image View

Page 156: 打造你的第一個iPhone APP

Clip Subviews

Page 157: 打造你的第一個iPhone APP

App

Page 158: 打造你的第一個iPhone APP

2 2 controller

Page 159: 打造你的第一個iPhone APP

UIButton

Page 160: 打造你的第一個iPhone APP
Page 161: 打造你的第一個iPhone APP

button

Page 162: 打造你的第一個iPhone APP

UINavigationController

Page 163: 打造你的第一個iPhone APP

UINavigationController

Page 164: 打造你的第一個iPhone APP

UINavigationController

Page 165: 打造你的第一個iPhone APP

UINavigationController

push & pop

segue

Page 166: 打造你的第一個iPhone APP

bar button

Page 167: 打造你的第一個iPhone APP

barnavigation controller navigation bar

Page 168: 打造你的第一個iPhone APP

1. 2. 3. 4. Menu Editor -> Canvas -> Zoom

Page 169: 打造你的第一個iPhone APP

UITabBarController

Page 170: 打造你的第一個iPhone APP

UITabBarController

tab bar & navigation bar

Page 171: 打造你的第一個iPhone APP

tab

1. 2. Outline View

controller

Page 172: 打造你的第一個iPhone APP

tabtab bar item

tab

Page 173: 打造你的第一個iPhone APP

tab

If you’re designing a custom tab bar icon, you should provide two versions—one for the unselected appearance and one for the selected appearance. The selected appearance is often a filled-in version of the unselected appearance, but some designs call for variations on this approach.

https://icons8.com

Page 174: 打造你的第一個iPhone APP

tab

tab

Page 175: 打造你的第一個iPhone APP

tab

delete

Page 176: 打造你的第一個iPhone APP

tab : 5

tab

5 5 tab more 5, 6, … tab

Edit tab tab

Page 177: 打造你的第一個iPhone APP

Text View

Page 178: 打造你的第一個iPhone APP

EditableSelectable

Detection Region

Page 179: 打造你的第一個iPhone APP
Page 180: 打造你的第一個iPhone APP
Page 181: 打造你的第一個iPhone APP

sectioncell

Page 182: 打造你的第一個iPhone APP

cell

cell cell

Page 183: 打造你的第一個iPhone APP
Page 184: 打造你的第一個iPhone APP

UI

copy paste storyboardUI controller

Page 185: 打造你的第一個iPhone APP

blurvibrancy

Page 186: 打造你的第一個iPhone APP

: cornerRadius = /2clip subviews

Page 187: 打造你的第一個iPhone APP

App iPhone

Page 188: 打造你的第一個iPhone APP

Xcode

Xcode App ( Apple Developer )

Page 189: 打造你的第一個iPhone APP
Page 190: 打造你的第一個iPhone APP
Page 191: 打造你的第一個iPhone APP
Page 192: 打造你的第一個iPhone APP
Page 193: 打造你的第一個iPhone APP
Page 194: 打造你的第一個iPhone APP

App iPhone

App -> -> ->Apple ID ->

Page 195: 打造你的第一個iPhone APP
Page 196: 打造你的第一個iPhone APP

App Store

https://itunesconnect.apple.com

Page 197: 打造你的第一個iPhone APP

App

Page 198: 打造你的第一個iPhone APP

App

1. App Store , Icon2. 3. 4. 5.

Page 199: 打造你的第一個iPhone APP

App

Page 200: 打造你的第一個iPhone APP
Page 201: 打造你的第一個iPhone APP
Page 202: 打造你的第一個iPhone APP

App

?

Page 203: 打造你的第一個iPhone APP

App(30 )

Icon

Page 204: 打造你的第一個iPhone APP

Xcode App

deviceArchive

Page 205: 打造你的第一個iPhone APP

Xcode App

Page 206: 打造你的第一個iPhone APP

• (bug)

• App Apple

• private API(Application Programming Interface)

Apple Store

Page 207: 打造你的第一個iPhone APP

App Store Review Guidelines

https://developer.apple.com/appstore/resources/approval/guidelines.html

Page 208: 打造你的第一個iPhone APP

躲得了一時,躲不了一世

App

Page 209: 打造你的第一個iPhone APP

… FHM

Page 210: 打造你的第一個iPhone APP
Page 211: 打造你的第一個iPhone APP

App , , •

Blog,

• App

• FB Instagram twitter

FB

https://www.youtube.com/watch?v=_iC8jnx32ho

Page 212: 打造你的第一個iPhone APP

App , , • blog

• App

•• PTT blog

Page 213: 打造你的第一個iPhone APP

Promo Code

50 Promo Code

Page 214: 打造你的第一個iPhone APP

App , ,

App

App Store

Page 215: 打造你的第一個iPhone APP

Apple

http://www.vogue.com.tw/feature/travel/content-13130.html

http://deeploveapple.blogspot.tw/2014/03/wealthy-best-new-apps.htmlhttp://deeploveapple.blogspot.tw/2014/05/wealthy.html

Page 216: 打造你的第一個iPhone APP

AppApp Annie

iTunes Connect

App Store

http://www.appannie.com

https://itunes.apple.com/tw/app/appstatics-track-iphone-ipad/id533547308

Appstatics

Page 217: 打造你的第一個iPhone APP

App• free vs. 0.99

100

• in-app purchase

••

•• App

Page 218: 打造你的第一個iPhone APP

App

App: 3

PTT App:

Page 219: 打造你的第一個iPhone APP

App

• + < 600 :

Page 220: 打造你的第一個iPhone APP

App

:

Page 221: 打造你的第一個iPhone APP

Swift ?

Page 222: 打造你的第一個iPhone APP

Swift 2

http://learnswift.strikingly.com

Page 223: 打造你的第一個iPhone APP

iOS APP

?

http://yourappmentor.strikingly.com