ios - The SubView's background is lost -


my application's structure follow:

  • uitabviewcontroller:

    • first uiviewcontroller:

      • uipageviewcontroller:

        - page1: uiviewcontroller:              - uiview: contains uilabels, 1 uibutton  - page2: uiviewcontroller:              - uiview: contains uilabels, 1 uibutton 
    • second uiviewcontroller:

the uiview added programmatically in uiviewcontroller:

 - (void)viewdidload {     [super viewdidload];     // additional setup after loading view.      sessionview* b = [[[nsbundle mainbundle] loadnibnamed:@"sessionview" owner:self options:nil] lastobject];     cgrect frame = b.frame;      b.frame = cgrectmake(0, 88, frame.size.width, frame.size.height);      [self.view addsubview:b]; }  

the weird thing uiview appears without background color. , button cannot tapped.

missing background

i upload source code here in case want check.

i working on ios8, xcode6, ipad

thanks lot.

try :

  [mainview bringsubviewtofront:subview]; 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -