-
Notifications
You must be signed in to change notification settings - Fork 500
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
Autolayout crash in iOS8 #100
Comments
same problem with you |
same issue encountered |
same problem here with version 2.7.0. |
Ditto. Removing the skip button with |
Does anybody have a temporary workaround/fix? I tried removing the skip button and that appeared to have no effect. |
@davecom unless you need whatever functionality |
Thanks, yes I downgraded to 2.6.4 and have resolved the crashing issue. However, I was using the bgColor functionality in 2.7... alas! |
I found the cause of this issue, now working on bugfix. |
@ealeksandrov thanks! |
Hi @ealeksandrov any update on this issue causing crash in iOS 8.3. its happening in release build for me not on debug build. |
It related with |
Hi guys, Any update on a fix? |
@igostavro .. till then you can use if want to use bgColor use bgImage EAIntroPage *page1 = [EAIntroPage page];
as page1.bgImage = [UIColor imageFromColor:[UIColor redColor]];
+ (UIImage *)imageFromColor:(UIColor *)color
{
CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f);
UIGraphicsBeginImageContext(rect.size);
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(context, [color CGColor]);
CGContextFillRect(context, rect);
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return image;
} |
Way ahead of you:-) Thanks! |
@ealeksandrov @mohitngm any update ? |
I'm also looking for an update on this too |
Waiting for update |
@ealeksandrov app crash when this method get called + (instancetype)pageWithCustomView:(UIView *)customV {
EAIntroPage *newPage = [[self alloc] init];
newPage.customView = customV;
newPage.bgColor = customV.backgroundColor;
return newPage;
} and if u choose showIntroWithCustomPages first the other option will work with no problem. try to showIntroWithCustomPages --then--> showIntroWithCustomView |
🎉 I finally found a root cause of this issue: EARestrictedScrollView.m#L54-56 Autolayout somehow uses I will merge all changes and push new version of EARestrictedScrollView. After this, EAIntroView will be updated and pushed on Cocoapods as well. |
To reproduce:
Related: http://stackoverflow.com/questions/25878621/nsrangeexception-on-ios-8
Solution from SO:
But: If you'll launch and close different intro example before opening autolaouyt one - it will work perfectly without crashing.
The text was updated successfully, but these errors were encountered: