我有下面列出的卡车清单。我还列出了下面列出的人员名单。我希望第二个人 (dondi) 成为 Buttermilk Truck 的所有者,但我不知道如何在属性 peopleTruck 中引用它。有任何想法吗?
listTrucks = [[NSMutableArray alloc] initWithObjects:
[Truck truckWithCuisine:@"American Cuisine" name:@"Buttermilk Truck" menu:[NSData dataWithContentsOfFile:@"/Users/Steve/Desktop/Truck Tracker App/Truck Tracker App/Buttermilk Truck Menu.tiff"] latitude: [NSNumber numberWithDouble: 0.1] longitude: [NSNumber numberWithDouble: 0.1]schedule:@"7/15/12"],
listUsers = [[NSMutableArray alloc] initWithObjects:
[Person personWithEmail:@"stephen" password:@"test" type:@"Eater" userFavoritesList:nil, personsTruck:nil],
[Person personWithEmail:@"dondi" password:@"test" type:@"Owner" userFavoritesList:favoritedTrucks = [[NSMutableArray alloc] init], personsTruck:listTrucks.],
nil];
selectedPerson = nil;