Top Banner
建簡單的 APP With xCode 13416星期
14

第一個App with xcode

Aug 10, 2015

Download

Documents

Shawn Chiu
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 第一個App with xcode

建⽴立簡單的 APPWith xCode

13年4月16⽇日星期⼆二

Page 2: 第一個App with xcode

Single View APP

文字

13年4月16⽇日星期⼆二

Page 3: 第一個App with xcode

為APP命名

組織名

公司識別

定義前綴字

取消勾選Storyboard, 才會產生xib檔案

13年4月16⽇日星期⼆二

Page 4: 第一個App with xcode

定義存檔位置

13年4月16⽇日星期⼆二

Page 5: 第一個App with xcode

檔案選擇

設定設備方向

選擇適用設備

13年4月16⽇日星期⼆二

Page 6: 第一個App with xcode

點選xib檔,拖曳元件

13年4月16⽇日星期⼆二

Page 7: 第一個App with xcode

插入一個Lable, 兩個button

13年4月16⽇日星期⼆二

Page 8: 第一個App with xcode

點選ViewController.hIBOulet:讓介⾯面和語法互動的標記IB 是Interface Builder縮寫UILabel:對象是個Label*mylabel:定義這個label名,可任意

13年4月16⽇日星期⼆二

Page 9: 第一個App with xcode

-()

13年4月16⽇日星期⼆二

Page 10: 第一個App with xcode

回到xib檔案,點選File’s Owner

13年4月16⽇日星期⼆二

Page 11: 第一個App with xcode

⽤用右邊的Outlet定義介⾯面上的物件

13年4月16⽇日星期⼆二

Page 12: 第一個App with xcode

複製.h中的-(IBAction)...到.m

13年4月16⽇日星期⼆二

Page 13: 第一個App with xcode

指定IBAction(sayhello)和IBAction(saygoodbye)的⾏行為在此是指定myleble的⽂文字變為...

13年4月16⽇日星期⼆二

Page 14: 第一個App with xcode

完成。點Play檢查

13年4月16⽇日星期⼆二