@interface UIPopoverListView : UIView <UITableViewDataSource, UITableViewDelegate>
{
UITableView *_listView;
UILabel *_titleView;
UIControl *_overlayView;
id<UIPopoverListViewDataSource> _datasource;
id<UIPopoverListViewDelegate> _delegate;
}
上面一段在编译时出现existing instance variable '_dataSource' for property 'dataSource' with assign attribute must be __unsafe_unretained
@interface UIPopoverListView : UIView <UITableViewDataSource, UITableViewDelegate>
{
UITableView *_listView;
UILabel *_titleView;
UIControl *_overlayView;
id<UIPopoverListViewDataSource> __unsafe_unretained _datasource;
id<UIPopoverListViewDelegate> __unsafe_unretained _delegate;
}