在 Xcode 5 之前,我用于在 .h 文件中的视图控制器之间发送参数
NSString *test;
@property (nonatomic, strong) NSString *test;
并在 .m 中使用
@synthesize test;
并在第一个视图控制器中使用:
SecondViewController *testC = [[SecondViewController alloc] init];
testC.test = @"Something ...!";
但它总是在调试器中显示 null 有什么问题还是有其他方法?