必要なのはtoolbarItems、トップUIViewControllerをUIPopover設定して適切に構成することです。次のようなことを考えてみましょう:
NSArray *segmentedItems = [NSArray arrayWithObjects:@"Bookmarks", @"Recents", @"Contacts", nil];
UISegmentedControl *ctrl = [[UISegmentedControl alloc] initWithItems:segmentedItems];
ctrl.segmentedControlStyle = UISegmentedControlStyleBar;
ctrl.selectedSegmentIndex = 0;
UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithCustomView:ctrl];
ctrl.frame = CGRectMake(0.0f, 5.0f, 320.0f, 30.0f);
NSArray *theToolbarItems = [NSArray arrayWithObjects:item, nil];
[self setToolbarItems:theToolbarItems];
[ctrl release];
[item release];
編集:今、私はそれを手に入れました。tintColorを設定しないでください。正しい色を継承します(それが何であれ)。以下のスクリーンショットは、Google マップ アプリのスクリーンショットとまったく同じように見えます。
代替テキスト http://www.memorylifter.com/services/dev/linklist/SCREENSHOT_TABBAT.png