ios - XCode 5 calling class with prepareforsegue -


i have tableview within container view. when user selects of rows, method called in parent controller, tells parent controller perform segue. however, unable figure out why doesn't work. code gets called didselectrow -function in tableview. method perform, gives me error no segue identifier.

however, when call method(listjobsofsite) within parent view controller works.

(tableview)

   -(void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath {     [self.jobvc listjobsofsite:@"locpwn"]; } 

parent view controller

-(void)listjobsofsite:(nsstring *)site {     [self performseguewithidentifier:@"jobsegue2" sender:nil]; } 

edit: segue between view controller 1, , view controller 2. view controller 1 holds container view, again holds table view controller. tableview controller should tell view controller 1 segue view controller 2.

edit 2: screenshot http://tinypic.com/r/30x7dr9/8

  1. you don't call classes. word looking "method." call listjobsofsite method in parent view controller class .

  2. have made sure have given segue identifier? in storyboard should click on segue, inspect it, , enter "jobsegue2" in field marked "identifier."

  3. if have done step 2, need container view? trying accomplish container view + tableview? sounds design make more sense without container view , tableview property of view controller 1.

if heart set on using container view, in storyboard try control + drag tableview cell view controller 2. name segue "jobsegue2." don't need call methods in didselectrow method. don't need storyboard segue view controller 1 2. seems this question has behavior want (the question, not answer! having opposite problem are).

edit: noticed have navigation controller within container view, suggestion above push view controller 2 within container view. i'm totally confused you're trying do.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -