{"id":1051,"date":"2011-01-17T14:34:40","date_gmt":"2011-01-17T05:34:40","guid":{"rendered":"http:\/\/yamazon.org\/?p=1051"},"modified":"2011-01-17T14:34:40","modified_gmt":"2011-01-17T05:34:40","slug":"tabbar%e5%86%85%e3%81%ababpeoplepickernavigationcontroller%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%95%e3%81%9b%e3%82%8b","status":"publish","type":"post","link":"https:\/\/apr20.net\/?p=1051","title":{"rendered":"tabBar\u5185\u306bABPeoplePickerNavigationController\u3092\u8868\u793a\u3055\u305b\u308b"},"content":{"rendered":"<p>\u3082\u3068\u3082\u3068\u5165\u3063\u3066\u3044\u308b\u96fb\u8a71\u30a2\u30d7\u30ea\u306a\u3093\u304b\u306f\u3001\u30bf\u30d6\u30d0\u30fc\u3092\u9078\u629e\u3059\u308b\u3068\u9023\u7d61\u5148\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306b\u3001\u3044\u308d\u3044\u308d\u8a66\u884c\u932f\u8aa4\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u5b9f\u88c5\u51fa\u6765\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u4ef6\u306b\u95a2\u3057\u3066\u306f\u3001\u3042\u307e\u308a\u3001\u60c5\u5831\u304c\u306a\u304b\u3063\u305f(\u30e2\u30fc\u30c0\u30eb\u30d3\u30e5\u30fc\u306bpicker\u3092\u8868\u793a\u3055\u305b\u308b\u4f8b\u306f\u591a\u3005\u3042\u308a\u307e\u3057\u305f\u304c\u30fb\u30fb\u30fb)\u306e\u3067\u3001\u30b9\u30de\u30fc\u30c8\u306a\u65b9\u6cd5\u304b\u3069\u3046\u304b\u306f\u4e0d\u660e\u3067\u3059\u306e\u3067\u3001\u3082\u3057\u3001\u3082\u3063\u3068\u30b9\u30de\u30fc\u30c8\u306a\u65b9\u6cd5\u3092\u3054\u5b58\u77e5\u306e\u65b9\u304c\u3044\u3089\u3063\u3057\u3083\u3044\u307e\u3057\u305f\u3089\u3001\u662f\u975e\u30b3\u30e1\u30f3\u30c8\u304f\u3060\u3055\u3044\u3002<!--more--><\/p>\n<blockquote><p>&#8211; (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {<\/p>\n<p>\/\/ Override point for customization after application launch.<\/p>\n<p>tabBarController = [[UITabBarController alloc] init];<\/p>\n<p>NSMutableArray *localViewControllersArray = [[NSMutableArray alloc] initWithCapacity:4];<\/p>\n<p>ABPeoplePickerNavigationController *contactsNavController = [[ABPeoplePickerNavigationController alloc] init];<\/p>\n<p>contactsNavController.tabBarItem.title = @&#8221;\u9023\u7d61\u5148&#8221;;<\/p>\n<p>contactsNavController.allowsCancel = NO;<\/p>\n<p>contactsNavController.allowsCardEditing = YES;<\/p>\n<p>contactsNavController.peoplePickerDelegate=self;<\/p>\n<p>[localViewControllersArray addObject:contactsNavController];<\/p>\n<p>FirstViewController *contactsNavController2 = [[FirstViewController alloc] init];<\/p>\n<p>contactsNavController2.tabBarItem.title = @&#8221;\u30b0\u30eb\u30fc\u30d7\u7ba1\u7406&#8221;;<\/p>\n<p>[localViewControllersArray addObject:contactsNavController2];<\/p>\n<p>SettingViewController *contactsNavController3 = [[SettingViewController alloc] init];<\/p>\n<p>contactsNavController3.tabBarItem.title = @&#8221;\u8a2d\u5b9a&#8221;;<\/p>\n<p>[localViewControllersArray addObject:contactsNavController3];<\/p>\n<p>SettingViewController *contactsNavController4 = [[SettingViewController alloc] init];<\/p>\n<p>contactsNavController4.tabBarItem.title = @&#8221;\u304a\u6c17\u306b\u5165\u308a&#8221;;<\/p>\n<p>[localViewControllersArray addObject:contactsNavController4];<\/p>\n<p>tabBarController.viewControllers = localViewControllersArray;<\/p>\n<p>[localViewControllersArray release];<\/p>\n<p>\/\/ Add the tab bar controller&#8217;s view to the window and display.<\/p>\n<p>[self.window addSubview:tabBarController.view];<\/p>\n<p>[self.window makeKeyAndVisible];<\/p>\n<p>return YES;<\/p>\n<p>}<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u3082\u3068\u3082\u3068\u5165\u3063\u3066\u3044\u308b\u96fb\u8a71\u30a2\u30d7\u30ea\u306a\u3093\u304b\u306f\u3001\u30bf\u30d6\u30d0\u30fc\u3092\u9078\u629e\u3059\u308b\u3068\u9023\u7d61\u5148\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[27,158,306],"class_list":["post-1051","post","type-post","status-publish","format-standard","hentry","category-old-blog","tag-abpeoplepickernavigationcontroller","tag-tabbar","tag-306"],"_links":{"self":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts\/1051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1051"}],"version-history":[{"count":0,"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts\/1051\/revisions"}],"wp:attachment":[{"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}