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

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -