ios - Is it possible to have top bar on UIView? -


i present uiview standart top bar - black navigation bar title of uiview.

  1. i have created xib.
  2. set top bar black navigation bar in xib
  3. added screen:

    _popup = [[[nsbundle mainbundle] loadnibnamed:@"popup" owner:self options:nil] objectatindex:0];  cgsize screensize = [[uiscreen mainscreen] bounds].size; _popupbackground = [[uiview alloc]initwithframe:                     cgrectmake(0,0,screensize.width,screensize.height)]; _paymentpopupbackground.backgroundcolor = [uicolor clearcolor];  [_paymentpopupbackground addsubview:_popup]; [[uiapplication sharedapplication].keywindow addsubview:_paymentpopupbackground]; 
  4. the uiview appeared without black navigation bar. how can fixed?

navigation bar uiviewcontrollers not uiviews.you can use toolbar on top of view , present it

make style black opaque

enter image description here


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -