我Duplicate symbols
在链接我的项目时看到。我不知道这意味着什么,也不知道如何解决它,所以任何帮助将不胜感激。
因为 shipNameText 似乎是错误的来源,所以我在这里使用它:在 .h 中:
@property (strong,nonatomic)IBOutlet UILabel *shipNameText;
米
@interface boatInfoViewController ()
@end
@implementation boatInfoViewController
@synthesize shipNameText, shipSizeText;
- (void)viewDidLoad
{
[super viewDidLoad];
NSUserDefaults *shipName = [NSUserDefaults standardUserDefaults];
NSUserDefaults *shipSize = [NSUserDefaults standardUserDefaults];
NSString *name = [[NSUserDefaults standardUserDefaults]
objectForKey:@"shipName"];
NSString *size = [[NSUserDefaults standardUserDefaults]
objectForKey:@"shipSize"];
shipNameText.text = name;
shipSizeText.text = size;
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end