我是一个有帮助的助手,可以为您进行翻译。以下是您需要翻译的内容:
我在使用iOS 7 SDK的Xcode 5中收到了一个警告:
Auto property synthesis will not synthesize property declared in a protocol
我在使用iOS 6.1 SDK和Xcode 4时没有收到这个警告。有什么想法吗?
这是我的代码:
List.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
List.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