ios - Controls are not displaying in simulator when moving from one viewcontroller to other viewcontroller with navigationcontroller -


i placed embedded navigationcontroller @ start of mainviewcontroller(login) , added other viewcontroller(home). in login view controller have button when click on button should move homeviewcontroller, have written code in button click.it redirecting homeview having issues

1)simulator displaying black page,if set background color white displaying white 2)labels,textboxes etc other fields drag , dropped home view not displaying.but if write code generate label or textbox displaying.

i have added constraints label(ex: welcome) label wasn't displaying ,not label other static fields not displaying if generate through code label or textbox displaying.

when remove navigationcontroller there no issues.

hope answer question.please me in issue. in advance

for buttonclick have written code below , in homeviewcontroller have drag , dropped label,textbox,button none of these displaying

  • (ibaction)btnlogin:(id)sender {

    homeviewcontroller *destinationcontroller = [[homeviewcontroller alloc] init];

    [self.navigationcontroller pushviewcontroller:destinationcontroller animated:no];

} redirecting homeview displaying blackscreen , changed background white white screen appeared controls not found


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -