送信者情報には渡しません。
didSelectRowAtIndexPath
あなたのことをして[self performSegueWithIdentifire:@"blah"]
から、このprepareForSegue
ようなことをしてください...
- (void)prepareForSegue:... //blah cant remember the name
{
if ([segue.identifier isEqualToString:@"blah"]) {
NewViewController *controller = segue.destinationViewController;
NSIndexPath *selectedIndexPath = [self.tableView indexPathForSelectedRow];
//get the object associated with that row and set a variable like...
NSString *selectedString = tableObject.name;
//Then pass the string into the controller...
controller.stringProperty = selectedString;
}
}
次に、これを受け入れるようにNewViewController.h
設定し@property
ます...
@property (nonatomic, strong) NSString *stringProperty;
次に、からこの値にアクセスできNewViewCongtroller.m
、値が渡されます。