IOS - toolbar is not appearing on top

后端 未结 1 1505
旧时难觅i
旧时难觅i 2021-01-16 10:57

i have asked this question here also but i didn\'t get any solution.so i am asking here again with the full explanation.

I downloaded EPub Reader library from here.

相关标签:
1条回答
  • 2021-01-16 11:38

    your tool bar is hiding being navigation bar since navigation bar is always on top you can add your tool bar as sub view of navigation bar i m not sure if it will work though best approch is use navigation bar and add item it it like left button right button and title stuff or you can add a view as subview of navigation bar i have done that before sample code

    navBar=self.navigationController.navigationBar;
    
    
        [navBar addSubview:statusBar];
        statusBar.frame=f;
    
        self.navigationController.navigationBar.translucent = YES;
    

    here statusBar was a view was set up like your tool bar same size.

    0 讨论(0)
提交回复
热议问题