我有一個對象名稱usr。我想改變看法,我想將它傳遞給新視圖。我怎樣才能傳遞這個對象?這樣做的將對象傳遞給不同的視圖
RVUser *usr = [[RVUser alloc] init];
UIViewController* exampleController = [[exampleClass alloc] initWithNibName:@"RVListsController" bundle:nil];
if (exampleController) {
exampleController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:exampleController animated:YES];
if (exampleController.title == nil) {
NSLog(@"enters");
//exampleController.title = @"Revistas Destacadas";
}
[exampleController release];
}
}
好點,但它沒有解決他的問題 – RyanR