答案 0 :(得分:0)
请务必声明您的两个变量
@interface ViewController : UIViewController
//Before @end
//Right
@property(nonatomic, strong, readwrite) NSString * environment;
@property(nonatomic, strong, readwrite) NSString * resultText;
@end
//If outside then get error like you got
//Wrong
@property(nonatomic, strong, readwrite) NSString * environment;
@property(nonatomic, strong, readwrite) NSString * resultText;