iphone - How can I get a custom UIControl to participate in a segue as a push action? -


i have custom class inherits uicontrol, touch events. it's collection of other controls acts one. i'm converting app xibs storyboard. it's been painless, except this.

i drag uiview scene, change class custom control, hook outlets on viewcontroller. want control when it's clicked perform (push) segue viewcontroller. outlets in designer aren't there uicontrol set segue.

is possible this? if so, do class enable that?

i don't think so. looking @ connections inspector pane, uibutton , uibarbuttonitem instances special treatment—an "triggered segues" action can connect adjacent view controllers:

uibuttons can trigger segues

while changing view's class descendent of uicontrol makes standard suite of control events available, unfortunately interface builder not let hook segue. best can create manually-triggered segue view controller another, connect custom control ibaction method performs segue programmatically:

- (ibaction)performmanualsegue:(xyzcustomcontrol *)sender {     [self performseguewithidentifier:@"manualpushsegue" sender:sender]; } 

ibaction manually triggering segue


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -