swift講座 メモ

xcode

create  テンプレート選ぶ

  Device Orientation  Portrait

 オートレイアウトで多画面対応の指定

位置制約 

  horizontal  Virtical

  Add 4 Constrains

   位置 ->   サイズの順に設定  

  width,height にチェック

 class  view controller

    view をタップ

  指が触れた時はイベント発生せず

  指が離れた時にイベント発生

 

 

 

iOS

swift

リファレンス

  switch 文  default が必須

 一個該当したら勝手に抜ける

 

For-in

後で調べる

 

?  optional

後で調べる