Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue getting only in iOS 9 above versions #46

Open
vikramarkareddy opened this issue Jan 12, 2016 · 1 comment
Open

Issue getting only in iOS 9 above versions #46

vikramarkareddy opened this issue Jan 12, 2016 · 1 comment

Comments

@vikramarkareddy
Copy link

I am entering some text in text field then after click on submit button (at that time key board is appeared).... after one alert view or custom alert will come.... But in ios 9 above versions popups(alert views, custom alerts) automatically disappeared

@ChrisXu
Copy link
Owner

ChrisXu commented Apr 17, 2016

Maybe it is caused by the windowLevel, it would be better for me to investigate if you could provide me some sample code. Thx!

@implementation CXAlertBackgroundWindow

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
        self.opaque = NO;
        self.windowLevel = UIWindowLevelAlert - 1; // This line
        self.rootViewController = [[CXTempViewController alloc] init];
        self.rootViewController.view.backgroundColor = [UIColor clearColor];
    }
    return self;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants