Why SubViews UIView is not displayed when View opens in iOS 9 with XCODE7 only

I am having a problem with displaying a UIView when the click is in the app. My View has a shortcut and a button, and everything works fine. Even now, it works well in earlier versions of iOS except iOS9.

I made this view using XIB and adding it to the window.

enter image description here

I have a class that binds this XIB -

 #import "MyViewPop.h"

   @implementation MyViewPop

 - (id)init {

  self = [super  init];

       if (self) {
           self = [[[NSBundle mainBundle] loadNibNamed:@"MyViewPop" owner:self options:nil]objectAtIndex:0];
           self.frame = [UIScreen mainScreen].bounds; 
           }
  return self;

 }

and I open it when I push Push -

MyViewPop*  pushp= [[MyViewPop alloc] init];

UIWindow *w = [[[UIApplication sharedApplication]delegate] window];
pushp.tag=1000000;
[w addSubview:pushp];
[w makeKeyAndVisible];

But only myViewPop is open, but I do not see the added button and shortcut there.

I do not know why this type of error exists, and Xcode7 even the same code works very well to open my view in iOS8, iOS7.

I have another pop-up application and this is the same copy of these pop-ups, but all the rest work well in all versions of iOS.

, , .

- UITableView Empty iOS 9 beta 5 .

+4

Source: https://habr.com/ru/post/1608426/


All Articles