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

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -