ios - Unable to see the label in the view Controller -


i have view controller called "help". placed label on view controller story board, in simulation couldn't see label. used remenu put menu @ top of view. can see menu bar, cannot see label. here files.

#import "help.h"  @interface ()  @end  @implementation @synthesize helptext1;  - (id)initwithnibname:(nsstring *)nibnameornil bundle:(nsbundle *)nibbundleornil {     self = [super initwithnibname:nibnameornil bundle:nibbundleornil];     if (self) {         // custom initialization     }     return self; }  - (void)viewdidload {     [super viewdidload];     [self.view setbackgroundcolor:[uicolor whitecolor]];     self.navigationitem.leftbarbuttonitem =      [[uibarbuttonitem alloc] initwithtitle:@"back"                                      style:uibarbuttonitemstylebordered                                     target:self                                     action:@selector(handleback:)];     helptext1.text=@"hiii";     helptext1.hidden=no;     // additional setup after loading view. }  -(void)handleback:(id)otherview{      uistoryboard *storyboard = [uistoryboard storyboardwithname:@"main" bundle:nil];     viewcontroller *myvc = (controller *)[storyboard            instantiateviewcontrollerwithidentifier:@"qrlist"];     [self.navigationcontroller pushviewcontroller:myvc animated:yes];  } - (void)didreceivememorywarning {     [super didreceivememorywarning];     // dispose of resources can recreated. }  @end 

here code calls "help" view controller.when click on option in menu, call "help" view controller.

remenuitem *helpitem = [[remenuitem alloc] initwithtitle:@"help"                                                 subtitle:nil                                                    image:[uiimage imagenamed:@"ic"]                                         highlightedimage:nil                                                   action:^(remenuitem *item) {                                                       nslog(@"item: %@", item);                                                       *controller = [[help alloc] init];                                                       [weakself setviewcontrollers:@[controller] animated:no];                                                   }]; 

the "help" view controller getting called couldn't see label dragged on storyboard. couldn't figure out issue.

i guess, label being @ wrong view. probably, pushed controller doesn't contain label put in nib file. try add other objects , see what's happening. if problem guessed, find exact controller, choose view , put there label. hope solve that!


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -