iPhoneアプリ
2011-08-08
【iPhone】View-based Applicationで途中からUINavigationController付きの画面に遷移する
昔からのInterface Builderを使わず手動で実装する世代の方には当然かも知れませんが、ナビゲーションの実装を新規プロジェクトのテンプレート選択でしか行ったことのない私は悩んだのでメモ。
参考:
要は遷移元のビューコントローラからpresentModalViewControllerする対象を、自分で生成したUINavigationControllerにしてあげれば大丈夫ということ。
NavigatedViewController *viewController = [[[NavigatedViewController alloc] initWithNibName:@"NavigatedViewController" bundle:nil] autorelease]; UINavigationController *navigationController = [[[UINavigationController alloc] initWithRootViewController:viewController] autorelease]; [self presentModalViewController:navigationController animated:YES];
UINavigationControllerとかUITabBarControllerは、UIViewControllerの派生なのね。
もっとアプリ全体の構成に密接に結びついてるのかと思ってた。
ハセガワ
クリック: 12回
クリック: 12回
トラックバック - http://d.hatena.ne.jp/PoohKid/20110808/1312818344
リンク元
- 7 http://www.google.co.jp/url?sa=t&source=web&cd=1&ved=0CBkQFjAA&url=http://d.hatena.ne.jp/PoohKid/20060411/p1&rct=j&q=sqlserver cse&ei=EIBATvi-IbTPiALopumUBQ&usg=AFQjCNGlIOQBpQGTju1Ho_q1wuR6sHKhEw
- 6 http://www.google.co.jp/search?sourceid=navclient&hl=ja&ie=UTF-8&rlz=1T4GGHP_jaJP435JP436&q=iphone+ocr
- 3 http://search.yahoo.co.jp/search?p=cse+sql&ei=UTF-8&fr=top_ga1_sa&x=wrt&meta=vc=
- 2 http://ezsch.ezweb.ne.jp/search/?query=エロ画像甲斐姫&start-index=6&adpage=3&ct=1301&sr=0104&t=20110809184028&filter=1
- 2 http://ezsch.ezweb.ne.jp/search/?query=トイレ+さぼったリング&ct=0001&pd=1&sr=0000
- 2 http://ezsch.ezweb.ne.jp/search/?query=素敵な名前&start-index=16&adpage=4&ct=1301&sr=0101&t=20110809090351&filter=1
- 2 http://ezsch.ezweb.ne.jp/search/?query=SoftBank+iPhone+3G+回線+繋がらない&ct=0001&pd=1&sr=0000
- 2 http://ezsch.ezweb.ne.jp/search/?sr=0001&query=3G+繋がらない
- 2 http://search.mobile.yahoo.co.jp/onesearch/?sbox=SBB&squery=iPodtouch+バックアップ&p=iTunes+シンクサービス
- 2 http://search.yahoo.co.jp/search?p=CIK クロサギ&aq=-1&oq=&ei=UTF-8&fr=top_ga1_sa&x=wrt





