【发布时间】:2013-02-25 18:25:46
【问题描述】:
我正在使用现有代码。 这里在 .h 文件中声明了一个 popovercontroller,它在实现行中给了我错误。
.h 文件
@property (nonatomic, strong) VFImagePickerController *imagePicker;
@property (nonatomic, strong) UIPopoverController *popoverController;
@property (nonatomic, strong) UINavigationController *targetVC;
.m 文件:
请建议如何解决此问题。
【问题讨论】:
-
你为什么注释掉@synthesize ...这一行?取消注释并清除所有目标并再次运行您的项目..
-
@RenoJones 有了现代的 Objective-C 和最新的编译器,你不再需要
@synthesize。 -
啊,是的,你说得对,我相信 xcode 4.2+。
标签: objective-c properties uipopovercontroller