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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -