iphone - Using a UISegmentedControl in the footer of UIPopoverController -


My iPad app viewfinder (), as I saw in the footer trying to create a look from a UISegmentedControl Build the main speaker in PopOver in the popover:

main

< P> The iPad used to suggest the use of HIG UIToolbar to combine a bottom, but the appearance is wrong. This screenshot shows Black opaque, but none of the standard styles match the main speaker.

viewfinder

Anyone about rebuilding the keying form Also the advice would be admirable you do not need the main speaker on the iPad, so you can see the same technique in the bookmark popover footer in the map.

itemprop = "text">

What do you want toolbarItems UIViewController > Set in your UIPopover and configure it properly. Think of something like this:

  NSArray * segmentedItems = [NSArray arrayWithObjects: @ "bookmark", @ "recent", @ "contact", zero]; UISegmentedControl * ctrl = [[UISegmentedControl alloc] initWithItems: Items with segments]; Ctrl.segmentedControlStyle = UISegmentedControlStyleBar; Ctrl.selectedSegmentIndex = 0; UIBarButtonItem * items = [[UIBarButtonItem alloc] initWithCustomView: ctrl]; Ctrl.frame = CGRectMake (0.0F, 5.0F, 320.0F, 30.0F); NSArray * theToolbarItems = [NSArray arrayWithObjects: item, zero]; [Self-settubbar item: The toolbartym]; [Ctrl release]; [Item release]; Edit: Now I got it, do not set Tint Kolar, it will get the right color (whatever it may be). The screenshot below shows exactly like the Google Maps app: 


Comments