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
NSInternalInconsistencyException #40
Comments
I just tried that exact code in the demo project and everything worked fine. Some questions for you. What version are you using? |
I am using the latest version as of March 19, 2014 |
Interesting, is there a demo project you could set up showing this problem? |
Please copy the text into a gist https://gist.github.com/ |
Since this discussion has died down and we don't have any information or action items, I'm closing this. |
This occurs if the status bar is hidden and there is no navigation bar. |
I haven't run into this myself, could you create a quick demo project @postmechanical? Either fork this repo or do your own thing. |
There's already one floating around out there: https://github.com/sircharleswatson/CRToastDemo It sets |
Thanks @postmechanical I will check it out |
I am not getting an exception in that demo app (iOS sim 7.0.3, 7.1). I do see the statusbar become visible when it shouldn't, but that is a different issue. |
@postmechanical using |
StatusBar must be visible
|
I am calling CRToast from UIViewcontroller with below code;
(void) userParamsSaved {
NSDictionary *options = @{
kCRToastTextKey : @"Hello World!",
kCRToastTextAlignmentKey : @(NSTextAlignmentCenter),
kCRToastBackgroundColorKey : [UIColor redColor],
kCRToastAnimationInTypeKey : @(CRToastAnimationTypeGravity),
kCRToastAnimationOutTypeKey : @(CRToastAnimationTypeGravity),
kCRToastAnimationInDirectionKey : @(CRToastAnimationDirectionLeft),
kCRToastAnimationOutDirectionKey : @(CRToastAnimationDirectionRight)
};
[CRToastManager showNotificationWithOptions:options
completionBlock:^{}];
}
and get
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid size {320, 0} for item <CRToastView: 0x1093935f0; frame = (-320 0; 320 0); userInteractionEnabled = NO; layer = <CALayer: 0x10932fd70>> in Dynamics'
what i am missing?
The text was updated successfully, but these errors were encountered: