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

UIViewControllerHierarchyInconsistency #120

Open
pplant opened this issue Apr 20, 2016 · 2 comments
Open

UIViewControllerHierarchyInconsistency #120

pplant opened this issue Apr 20, 2016 · 2 comments

Comments

@pplant
Copy link

pplant commented Apr 20, 2016

HI do you have any information on this Issue?

A view can only be associated with at most one view controller at a time! View <VLCAlertView: 0x175f95f0; frame = (0 0; 320 568); autoresize = W+H; layer = <CALayer: 0x177154d0>> is associated with <VLCAlertViewController: 0x17f13590>. Clear this association before associating this view with <VLCAlertViewController: 0x1798d130>.

In SIAlertViewController loadView

Thread : Fatal Exception: UIViewControllerHierarchyInconsistency
0 CoreFoundation 0x20a45b8b __exceptionPreprocess
1 libobjc.A.dylib 0x20202dff objc_exception_throw
2 CoreFoundation 0x20a45ad1 -[NSException initWithCoder:]
3 UIKit 0x25095207 -[UIView(Internal) _setViewDelegate:]
4 UIKit 0x250950ab +[UIViewController setViewController:forView:]
5 UIKit 0x25094d7d -[UIViewController setView:]

@zdesiree
Copy link

Same issue here, has anyone found a solution?

@pplant
Copy link
Author

pplant commented Apr 21, 2016

Hi @zdesiree! Tried to temporarily fix it by removing the "loadView" function in the ViewController of the library and instead adding the alertView to the view of the viewcontroller

[self.view addSubview:self.alertView]

of course you also need to pass the frame of the self.view to self.alertView. However I'm not 100% sure if this solves the issue but in theory it should. Lets see what crashlytics throws back in the next weeks

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