ios - Unrecognized selector sent to instance when calling back button programmatically -


i'm viewing detail view when clicking on record table. when call button detail view using

- (ibaction)loaddispensary { [self.navigationcontroller popviewcontrolleranimated:yes]; } 

i unrecognized selector error.

i've tried pushing the detail controller following 2 ways.

push type 1 detailviewcontroller *detailview = [[self storyboard] instantiateviewcontrollerwithidentifier:@"detailview"]; detailview.strain = self.selectedstrain; [self.navigationcontroller pushviewcontroller:detailview animated:yes]; push type 2 [self performseguewithidentifier: @"detailsegue" sender: self]; //set strain on prepareforsegue 

how button connected? can u show code? perhaps might have not linked button ibaction.


Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -