Created
February 21, 2014 07:12
-
-
Save neiraza/9130073 to your computer and use it in GitHub Desktop.
Storyboardのsegueでパラメタ受け渡したった ref: http://qiita.com/neiraza/items/6eba4e57dffa993b4933
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender | |
{ | |
if ([segue.identifier isEqualToString:@"openChatView"]) { | |
SecondViewController *controller = segue.destinationViewController; | |
controller.name = @"neiraza"; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface SecondViewController : UIViewController | |
@property (nonatomic, strong) NSString *name; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
NSLog(@"name %@", self.name); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment