PodsのPodfileに
pod 'ライブラリ名', '~> バージョン'
例:
pod 'RealmSwift', '~> 2.5.1’
ターミナルで
$ cd Podfileのあるディレクトリ
$ pod update
例:
$ cd iOSApp/appName/
$ pod update
2017/04/18
2016/11/16
【iOS】【swift3】コードからstoryboardに画面遷移する
Next.storyboard 、storyboard idはnext に遷移する場合
NavigationControllerを使う場合は
これでNavigation Barが表示される。
let storyboard = UIStoryboard(name: "Next", bundle: nil)
let nextVC = storyboard.instantiateViewController(withIdentifier: "next")
self.present(nextVC, animated: true, completion: nil)
NavigationControllerを使う場合は
let storyboard = UIStoryboard(name: "Next", bundle: nil)
let nextVC = storyboard.instantiateViewController(withIdentifier: "next")
let navigationController = UINavigationController(rootViewController: nextVC)
self.present(navigationController , animated: true, completion: nil)
これでNavigation Barが表示される。
登録:
投稿 (Atom)