我在 Xcode 5 中收到带有 iOS 7 SDK 的警告,上面写着
Auto property synthesis will not synthesize property declared in a protocol
在带有 iOS 6.1 SDK 的 Xcode 4 中,我没有收到此警告。有任何想法吗?
这是我的代码:
列表.h
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import <MapKit/MapKit.h>
@interface List : UIViewController <UITableViewDataSource, UITableViewDelegate, UISearchBarDelegate, CLLocationManagerDelegate, MKMapViewDelegate, MKAnnotation>
{
IBOutlet UITableView *tableView;
IBOutlet UISearchBar *searchBar;
}
@property (nonatomic, strong) NSArray *annotations;
@end
列表.m
#import "List.h"
#import "RSFM.h"
#import "AnnotationDetailView.h"
#import "DTCustomColoredAccessory.h"
@interface List ()
@end
@implementation List
{
NSMutableArray *title;
NSMutableArray *subtitle;
NSMutableArray *displayItems;
NSMutableDictionary *marketDictionary;
NSMutableArray *farmMarkets;
NSArray *keys;
NSMutableArray *objects;
}
我在线收到警告:
@implementation List