【发布时间】:2012-05-12 20:14:18
【问题描述】:
我正在向 Prestented View Controller 添加一个协议,以建立 Presenting View Controller 和 Presented View Controller 之间的关系。
The current deployment target does not support automated __weak references
我已经在呈现的视图控制器 (DistanceModalViewController.h) 中声明了如下协议:
@protocol DistanceModalViewControllerDelegate <NSObject>
-(void)dismissDistanceModalViewControllerWithData: (id) data;
@end
并在界面中(DistanceModalViewController.h):
@property (nonatomic, weak) id<DistanceModalViewControllerDelegate> delegate;
在我综合的实现中(DistanceModalViewController.m):
@synthesize delegate;
但我得到了上面的错误。我的目标是 iPhone 5.1 模拟器。
我可以理解弱引用给我的问题,但在 iOS5 上,我有点困惑。我做错了什么?
谢谢
【问题讨论】:
-
项目的部署目标是什么?
标签: ios ios5 automatic-ref-counting