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

Not Working for iOS 7.x version #2

Open
ParilShah opened this issue Jun 3, 2015 · 1 comment
Open

Not Working for iOS 7.x version #2

ParilShah opened this issue Jun 3, 2015 · 1 comment

Comments

@ParilShah
Copy link

The controller is not compatible with iOS 7.x version. Here, I have attached 2 images. 1.) Application tarts (Taken from iPhone 4s simulator - iOS 7.1), 2.) When Tap on "+" button. It disappears the view completely for iOS 7.x. In iOS 8.x version, it works fine, even after removing UIVisualEffectView.

1
2

@smehus
Copy link

smehus commented Jun 9, 2015

The problem is with this line:

UIBlurEffect *blur = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
UIVisualEffectView *vsview = [[UIVisualEffectView alloc]initWithEffect:blur];

UIVisualEffect's are only in ios8. You can fix this with the following:

if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")) {
    _bgView = vsview;
}

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