送信者情報には渡しません。
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、値が渡されます。