ios - Custom Segue class perform method called, action doesn't do anything -


i'm trying create custom segue between viewcontroller (first view) , browsercontroller (second view).

currently have...

customsegue.h:

#import <uikit/uikit.h>  @interface customsegue : uistoryboardsegue  @end 

customsegue.m:

    #import "customsegue.h"  @implementation customsegue  - (void)perform {      nslog(@"perform method running");      uiviewcontroller *viewcontroller = (uiviewcontroller *) self.sourceviewcontroller;     uiviewcontroller *browsercontroller = (uiviewcontroller *) self.destinationviewcontroller;      nslog(@"starting duration...");      [uiview transitionwithview:viewcontroller.navigationcontroller.view duration:0.2     options:uiviewanimationoptiontransitionflipfromleft     animations:^{                  nslog(@"animation section");                  [viewcontroller.navigationcontroller pushviewcontroller:browsercontroller animated:no];                  }                     completion:null];      nslog(@"performance method completion");  } 

nothing happens when click button go next view.

i set view segue "custom" (ctrl drag) , defined class "customsegue". see there 2 "custom" options select after ctrl , dragging- have tried both of these in case (and re-defined class both times), still problem persists. used nslog , saw perform method being called, have no errors, , yet button still not perform segue (or segue) next view.

the button triggers segue

- (ibaction)browserbutton:(id)sender 

this last area narrow down to... need add ibaction tell use new segue?

you don't need ibaction. seems should working fine , you've tried everything- recommend delete work (or rollback if use github) , start on again. start point right before added customsegue class , sure retype code (you never know, catch small details).

goodluck.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -