-
Notifications
You must be signed in to change notification settings - Fork 535
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
EXC_BAD_ACCESS (code=1) #28
Comments
Hi @lewishalliday , I need more info 👍 iOS version Your code its running fine on iPhone 6 Simulator |
It's doing it in both physical and virtual device. |
okay and your iOS version ? which device ? |
iOS 8.1 - iPhone 6 Plus (Physical) |
I had a look and somebody mentioned about it running on a different thread, but even when running it on the main thread its doing the same thing. |
@lewishalliday I'm not able to reproduce. |
Don't worry about it. I think there is something else that is causing an issue as the exact same code is fine in another class. I'll just re-create the class and go from there. Thanks for your help tho! |
I am having this same issue displaying it in a UITableViewController subclass. |
It crashes on this line: [keyWindow.layer renderInContext:context]; And this seems to be due to the fact that renderInContext cannot be called on a background thread: http://stackoverflow.com/questions/15135208/objective-c-renderincontext-crash-on-background-thread |
I'm having an issue with this.
I'm a big fan of SCLAlertView but i'm having an issue with a section within my code.
I am using the code elsewhere in my project but when using it within another view controller I'm receiving the above error.
It is showing itself within UIImage+ImageEffects.m on line [keyWindow.layer renderInContext:context]; within
This is the code I am using to call the alert
SCLAlertView *alert = [[SCLAlertView alloc] init];
UITextField *textField = [alert addTextField:@"Quantity"];
[textField setKeyboardType:UIKeyboardTypeNumberPad];
alert.backgroundType = Blur;
alert.shouldDismissOnTapOutside = YES;
[alert showSuccess:self title:@"Quantity" subTitle:@"Enter Quantity" closeButtonTitle:@"Done" duration:0.0f];
Thanks in advance
Edit: If i leave the alert view standard it works perfectly. It only seems to have an issue when customising the alert where it crashes
SCLAlertView *alert = [[SCLAlertView alloc] init];
UITextField *textField = [alert addTextField:@"Quantity"];
[textField setKeyboardType:UIKeyboardTypeNumberPad];
alert.backgroundType = Blur;
[alert showSuccess:self title:@"Quantity" subTitle:@"Enter Quantity" closeButtonTitle:@"Done" duration:0.0f];
That works fine
The text was updated successfully, but these errors were encountered: