ios - Tableview delegate not return value -


I have a problem with UIButton tableviewcontroller , when I do The test, and I click the Cancel button to call the action, they did not call the representative, did not work, did not follow the code.

StalkViewController .

  #import & lt; UIKit / UIKit.h & gt; #import "FMDBDataAccess.h" #import "EditStalkViewController.h" #import "NewStalkViewController.h" StalkViewController @interface: UITableViewController & LT; NewStalkViewControllerDelegate & gt; @protecti (nanatomic, strong) NSMutableEre * stalk; - (zero) populateStalk; @end  

StalkViewController.m

  - (Zero) addNewStalkViewControllerDidCancel: (NewStalkViewController *) controller {[self-dismissViewControllerAnimated: Yes Completion: zero]; } - (zero) prepareForSegue: (UIStoryboardSegue *) segue this: (id) this {if ([isEqualToString segue.identifier: @ "addstalk"]) {UINavigationController * navigationController = segue.destinationViewController; NewStallView controller * addNewStalkViewController = (NewStalkViewController *) [[Navigation controller view controller] objectAtIndex: 0]; AddNewStalkViewController.delegate = self; }}  

NewStalkViewController.h

  #import "Stalk.h" #import "Utility.h" @class NewStalkViewController ; @protocol NewStalkViewControllerDelegate & lt; NSObject & gt; - (Zero) addNewStalkViewControllerDidCancel: (NewStalkViewController *) controller; @ And @ Interface Newcast Viu Controller: UITB VUI Controller & amp; Lt; FBFrandPecker Delegate, UITeadfield Delaygate & gt; {} @property (nontomatic, weak) id & lt; Newstream controller delegate & gt; Representative; - Cancel (IBAction): (ID) Sender; @end  

NewStalkViewController.m

  #import "NewStalkViewController.h" @implementation NewStalkViewController @synthesize reps; - Cancel (IBAction): (ID) sender {[self Delegate addNewStalkViewControllerDidCancel: self]; } @end  

Help me!


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -