ios4 - Setting the UILabel text from one UIControllverView to another UIControllerView before pushing it on navigation controller -
this trying do.
myviewcontroller *viewcontroller = [[myviewcontroller alloc] initwithnibname:@"myviewcontroller" bundle:nil]; uilabel *lbltempstoreno = [[uilabel alloc] init]; [lbltempstoreno settext:@"1234"]; viewcontroller.lblstoreno = lbltempstoreno; [activerouteticketlistview setlblstoreno:lbltempstoreno]; [[self navigationcontroller] pushviewcontroller:viewcontroller animated:yes]; [lbltempstoreno release]; [viewcontroller release];
basically setting label in view controller push on navigation controller, value of label not changing :@. wondering if possible?
you changing label, , not text of label. shouldn't code be:
viewcontroller.lblstoreno.text = @"1234";
?
Comments
Post a Comment