ViewController追加方法 (iOS)
ViewControllerを追加する
■ class追加
File>New>File>Objective-c ClassでNextクリック
↓
Classに{クラス名},Subclass of にUIViewControllerを設定しNextクリック
↓
場所を指定してcreateクリック
これで{クラス名}.h,{クラス名}.mファイルが作られる
■ViewController(クラス名)とstory boardのsceneをひもづける
storyboard内で右下部品のview controllerをドラックドロップでscrene追加する
右上のCustom Classを追加した{クラス名}にする。