Re: Programmatically displaying UISplitViewController popover?
Re: Programmatically displaying UISplitViewController popover?
- Subject: Re: Programmatically displaying UISplitViewController popover?
- From: Rick Mann <email@hidden>
- Date: Fri, 03 Jun 2011 17:03:22 -0700
On Jun 3, 2011, at 11:54 , Evadne Wu wrote:
> So you have the bar button item and tapping it works; I believe tapping it just invokes its action on its target and there is no much wizardry in thaqt. Is the item we’re talking about the same item that the split view controller sends to you in -splitViewController:willHideViewController:withBarButtonItem:forPopoverController: ? If that is the case, does something along the line of [[item target] performSelector:@selector(action) withObject:item] work?
Doing that works, it just strikes me as a hack. But I guess it's what I'll have to go with. Thanks!
The exact line I wrote is:
[self.popoverButtonItem.target performSelector: self.popoverButtonItem.action withObject: self.popoverButtonItem];
--
Rick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden