objective c - Passing objects to a different view -
i have object name usr. want change views , want pass along new view. how can pass object?
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]; } }
one way of doing declare property of type rvuser
on exampleclass
, assign property after creating examplecontroller
.
Comments
Post a Comment