我无法将数据从ivar传递到以编程方式创建UITextField。以下是我目前的情况:self.ivar = [NSString stringWithFormat:@"%@", [[notification userInfo] objectForKey:@"DO"]];
NSlog(@"%@", self.ivar); // It is OK Correctly display the string from sel
但是如果你这样做了呢?someObject = @"Tomato"; // or maybe _someObject = @"Tomato" if you are doing auto-synthesizing
直接访问iVar我理解如果你想从另一个类操作someObject,为什么你需要使用self.someOject。但是为什么即使你还在同一个班级,你也需要做同样的事情。为什么直接访问<e