{"id":1285,"date":"2012-09-07T09:07:50","date_gmt":"2012-09-07T00:07:50","guid":{"rendered":"http:\/\/blog.4star.link\/?p=1285"},"modified":"2012-09-07T09:07:50","modified_gmt":"2012-09-07T00:07:50","slug":"obective-ciphone%e3%81%ab%e3%81%a6%e3%80%81uitabbar%e6%af%8e%e3%81%abuinavigationbar%e3%81%ae%e3%83%9a%e3%83%bc%e3%82%b8%e3%82%92%e3%82%b3%e3%83%bc%e3%83%89%e3%81%a7%e7%94%a8%e6%84%8f%e3%81%99","status":"publish","type":"post","link":"https:\/\/blog.4star.link\/?p=1285","title":{"rendered":"obective-c(iPhone)\u306b\u3066\u3001UITabBar\u6bce\u306bUINavigationBar\u306e\u30da\u30fc\u30b8\u3092\u30b3\u30fc\u30c9\u3067\u7528\u610f\u3059\u308b\u3002"},"content":{"rendered":"<p>\u6700\u8fd1iphone\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3092\u30e1\u30a4\u30f3\u3067\u3084\u3063\u3066\u304a\u308a\u3001\u8272\u3005\u8abf\u3079\u306a\u304c\u3089\u3084\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001<br \/>\n\u3069\u308c\u3082<strong>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30d3\u30eb\u30c0\u30fc<\/strong>\u3084\u3001<strong>\u30b9\u30c8\u30fc\u30ea\u30fc\u30dc\u30fc\u30c9<\/strong>\u3092\u4f7f\u3063\u305f\u8aac\u660e\u304c\u591a\u304f\u500b\u4eba\u7684\u306b\u306f\u3084\u308a\u305a\u3089\u3044\u5370\u8c61\u3092\u3082\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3068\u8a00\u3046\u4e8b\u3067\u3001\u8272\u3005\u63a2\u3057\u305f\u7d50\u679c\u3001\u30b3\u30fc\u30c9\u3067<span style=\"color: #ff9900;\"><strong>UITabbar<\/strong><\/span>\u3068<span style=\"color: #339966;\"><strong>UINavigationBar<\/strong><\/span>\u3092\u5171\u5b58\u3055\u305b\u308b\u65b9\u6cd5\u304c\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u81ea\u529b\u3067\u3068\u308a\u3042\u3048\u305a\u52d5\u3044\u305f\u65b9\u6cd5\u3092\u4e0b\u8a18\u306b\u30e1\u30e2\u3057\u307e\u3059\u3002<br \/>\n\u4f59\u529b\u304c\u3042\u308c\u3070<strong>github<\/strong>\u306b\u3042\u3052\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>AppDelegate.m<\/p>\n<pre class=\"brush:objc\">- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions\n{\n\n    _window= [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];\n    _tabBarController = [[UITabBarController alloc] init];  \/\/tabbar\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u521d\u671f\u5316\n\n    \/\/ TabBarController\u306b\u52a0\u3048\u308b3\u3064\u306eViewController\n    UIViewController *firstViewController = [[FirstViewController alloc] init];\n    UIViewController *secondViewController = [[SecondViewController alloc] init];\n    UIViewController *thirdViewController = [[ThirdViewController alloc] init];\n\n    \/\/first\u7528UINavigationController \u306e\u30eb\u30fc\u30c8\u753b\u9762 \n    UINavigationController *naviFirstViewController = [[UINavigationController alloc] initWithRootViewController:scanViewController];\n\n    \/\/UINavigationController \u306e\u30eb\u30fc\u30c8\u753b\u9762 \n    UINavigationController *naviSecondListController = [[UINavigationController alloc] initWithRootViewController:secondViewController];\n\n    \/\/ tab bar controller \u306e\u521d\u671f\u5316\n    self.tabBarController.viewControllers =[NSArray arrayWithObjects:naviFirstViewController, naviSecondListController, thirdViewController, nil];\n\n    [self.window addSubview:self.tabBarController.view];\n    [self.window makeKeyAndVisible];\n\n    return YES;\n}<\/pre>\n<p>\u4e0a\u8a18\u306f\u3001\u5de6\u304b\u3089\uff12\u3064\u76ee\u307e\u3067\u306e\u30bf\u30d6\u306f\u305d\u308c\u305e\u308c\u3001\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d0\u30fc\u3092\u3082\u3063\u3066\u3044\u3066\u3001\u305d\u308c\u3092\u6700\u5f8c\u306b\u30bf\u30d6\u30d0\u30fc\u306b\u30bb\u30c3\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3084\u3063\u3071\u308a\u30b3\u30fc\u30c9\u3067\u66f8\u3044\u305f\u65b9\u304c\u3001\u4f55\u3092\u3084\u3063\u3066\u3044\u308b\u304b\u3057\u3063\u304f\u308a\u304f\u308b\u3057\u3001<br \/>\n<strong>IB<\/strong>\u3084<strong>Xib<\/strong>\u3082\u3042\u308f\u305b\u3066\u307f\u308b\u5fc5\u8981\u304c\u306a\u304f\u5927\u5909\u6271\u3044\u3084\u3059\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1iphone\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3092\u30e1\u30a4\u30f3\u3067\u3084\u3063\u3066\u304a\u308a\u3001\u8272\u3005\u8abf\u3079\u306a\u304c\u3089\u3084\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001 \u3069\u308c\u3082\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30d3\u30eb\u30c0\u30fc\u3084\u3001\u30b9\u30c8\u30fc\u30ea\u30fc\u30dc\u30fc\u30c9\u3092\u4f7f\u3063\u305f\u8aac\u660e\u304c\u591a\u304f\u500b\u4eba\u7684\u306b\u306f\u3084\u308a\u305a\u3089\u3044\u5370\u8c61\u3092\u3082\u3063\u3066\u304a\u308a\u307e\u3059\u3002 \u3068\u8a00\u3046\u4e8b\u3067\u3001\u8272\u3005\u63a2\u3057\u305f &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.4star.link\/?p=1285\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;obective-c(iPhone)\u306b\u3066\u3001UITabBar\u6bce\u306bUINavigationBar\u306e\u30da\u30fc\u30b8\u3092\u30b3\u30fc\u30c9\u3067\u7528\u610f\u3059\u308b\u3002&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[188,179,189,181,190,191,192,148,193],"class_list":["post-1285","post","type-post","status-publish","format-standard","hentry","category-1","tag-ib","tag-iphone","tag-objc","tag-objective-c","tag-uinavigationbar","tag-uitabbar","tag-xib","tag-148","tag-193"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/posts\/1285"}],"collection":[{"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.4star.link\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1285"}],"version-history":[{"count":0,"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/posts\/1285\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.4star.link\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.4star.link\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.4star.link\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}