我有一个对象名称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