Do you have a sample so we can see what you mean?

I've been doing a few popovers recently that are completely independent from a 
UISplitViewController.  It can be a little challenging getting a grip on how 
you should set things up.  Generally, I'll programmatically set the popover's 
viewController with initWithContentViewController like so:

    PopoverContentViewController *popoverContent = 
[[PopoverContentViewController alloc] init];
    
    // Setup the popover for use from the navigation bar.
    infoPopoverController = [[UIPopoverController alloc] 
initWithContentViewController:popoverContent];
    infoPopoverController.popoverContentSize = CGSizeMake(320.0, 244.0);
    infoPopoverController.delegate = self;

So, you can make the content as wide as you want within the 
PopoverContentViewController view controller.

Then when a button is tapped, I'll call this:

- (IBAction)InfoButtonPressed:(id)sender {
        // Set the sender to a UIBarButtonItem.
        UIBarButtonItem *tappedButton = (UIBarButtonItem *)sender;
        
        // If the master list popover is showing, dismiss it before presenting 
the popover from the bar button item.
        if (infoPopoverController != nil) {
        [infoPopoverController dismissPopoverAnimated:YES];
    } 
        
        // If the popover is already showing from the bar button item, dismiss 
it. Otherwise, present it.
        if (infoPopoverController.popoverVisible == NO) {
                [infoPopoverController 
presentPopoverFromBarButtonItem:tappedButton 
permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];          
        }
        else {
                [infoPopoverController dismissPopoverAnimated:YES];
        }

}


Hope this helps.

On Mar 13, 2013, at 4:09 PM, koko wrote:

> I have seen some popovers that have a wider frame with text information.
> 
> I cannot find how to specify this style and text an am asking for a pointer 
> to the documentation for this feature.
> 
> -koko
> 
> 
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/zav%40mac.com
> 
> This email sent to z...@mac.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to