forked from mixi-inc/iOSTraining
-
Notifications
You must be signed in to change notification settings - Fork 0
HomeWork 2.2 NavigationController
ginrou edited this page Apr 17, 2013
·
2 revisions
UINavigationControllerとボタンのカスタマイズと、popToRootViewControllerについて
- UINavigationControllerを無限にpushできるようにする(講義中と同じ)
- navigationbarのボタンについては
- 右上はpushというタイトルのボタンで、タップすると同じview controllerがpushされる
- 左上には、第一階層の時はpopボタンを、第二階層以降では戻るとpopボタンを配置する
- 戻るボタンをタップすると、一つ前の階層に戻り
- popボタンをタップすると、第一階層に戻る
- 右上のボタンは
self.navigationItem setRightBarButtonItem:
でセットできます。渡す引数はUIBarButtonItem型です - 左上のボタンをセットすると戻るボタンが消えてしまいます。その時は
self.navigationItem.leftItemsSupplementBackButton = YES
としてください。 - 第一階層に戻るにはUINavigationControllerの
popToRootViewControllerAnimated:
を呼べば戻れます
- 導入
- Objective C の基礎
- メモリ管理
- UIViewController1 - UIViewController のカスタマイズ
- UIViewController2 - ModalViewController
- UIViewController3 - ライフサイクル
- UIKit 1 - container, rotate-
- UINavigationController
- UITabController
- Custom Container View Controller
- Supporting Multiple Interface Orientations
- UIKit 2- UIView -
- UIView
- UIView のカスタマイズ
- UIView Animation
- UIKit 3 - table view -
- UITableView について
- UITableViewとNavigationController
- custom UITableViewCell の作成
- 4.4 UITableViewのその他のオプション、カスタマイズ
- UIKit 4 - images -
- UIImage (CoreGraphics)
- UIImageView
- Accets Library
- CoreImage
- UIKit 4 - text -
- UILabel
- UITextView
- KeybordNotification
- 非同期処理系
- NSURLConnection (json シリアライザ)
- Blocks
- GCD
- ローカルキャッシュ
- UserDefaults
- FileManager
- CoreData
- SQLite
- Instruments
- leak
- time profiler
- その他
- 単体テスト (GHUnit)
- 結合テスト (KIF)
- cocoaPods でライブラリ管理