forked from mixi-inc/iOSTraining
-
Notifications
You must be signed in to change notification settings - Fork 0
HomeWork 1.2 UIViewControllerとModalViewController
tamotamago edited this page Apr 16, 2013
·
1 revision
UIViewControllerとUIModalViewControllerを使った課題です。 途中までは講義中のものと同じです
- UIViewControllerのView上にボタンを設置し、そのボタンを押すとモーダルが立ち上がる
- 立ち上げるモーダルは新しいViewControllerクラスを作ってください
- 立ち上がるモーダルにはボタンが一つついており、そのボタンをタップするとモーダルが閉じる
- モーダルを殺す処理はモーダル自身がするのではなく、delegateを用いてモーダルを表示させた親が殺すようにする
- ---------ここまでは講義中のものと同じ------------
- modalが閉じた瞬間に新しいmodalを表示するようにしてください
見づらい場合はこちらを→https://github.com/mixi-inc/iOSTraining/blob/master/Doc/Images/HomeWork/1-2-1.png
dismissViewControllerにはcompletitionBlockという引数があります。 この引数には、モーダルが閉じきった時に実行するクロージャ(Blocks)を渡します。Blocksについては、また後日解説がありますが、 「完了時に実行したい処理」を書けば問題ありません。
- UIViewControllerを作れるようになる
- ModalViewを表示させることができるようになる
- delegateパターンを実装できるようになる
- completitionBlockが使えるようになる
- 導入
- 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 でライブラリ管理