我想将NSManagedObject的副本传递给新的viewController。我该如何制作该物品的副本?
Store *store = [self.stores objectAtIndex:indexPath.row]; //stores in an array of stores
StoreDetailViewController *v = [[StoreDetailViewController alloc] initWithText:@"" forStore:store];
[self.navigationController pushViewController:v animated:YES];
[v release];
答案 0 :(得分:0)
您无法发送NSManagedObject
copy
条消息,因为它不符合NSCopying
协议。