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 #1

Open
cliff76 opened this issue Oct 19, 2012 · 2 comments
Open

UIViewControllerHierarchyInconsistency #1

cliff76 opened this issue Oct 19, 2012 · 2 comments

Comments

@cliff76
Copy link

cliff76 commented Oct 19, 2012

I just cloned your project last night and I hit a UIViewControllerHierarchyInconsistency error when I ran. I can't figure out where it's coming from. I see this in the console:

reason: 'A view can only be associated with at most one view controller at a time! View <UIView: 0x1f87ff00; frame = (0 0; 320 480); autoresize = W+H; layer = <CALayer: 0x1f872310>> is associated with <UIViewController: 0x1eda4c40>. Clear this association before associating this view with <MixerHostViewController: 0x1f870710>.'

I made the following change in application:didFinishLaunching:

// [window addSubview: viewController.view];
window.rootViewController = self.viewController;

But I still get the error. I looked all through the object graph in the debugger and I can't find out where the view is associated with another UIViewController. I'm running XCode 4.5.1 on OS X 10.7.5 and deploying on an iPhone 4S.

@tkzic
Copy link
Owner

tkzic commented Oct 19, 2012

Hi Clifton,

Ok – thanks for letting me know. Will take a look at it when I get a chance. I have not compiled the project in a recent version of xcode or ios due, have been too busy teaching this fall. But thanks very much for letting me know about the error and trying to fix it.

tz

From: Clifton
Sent: Friday, October 19, 2012 11:58 AM
To: tkzic/audiograph
Subject: [audiograph] UIViewControllerHierarchyInconsistency (#1)

I just cloned your project last night and I hit a UIViewControllerHierarchyInconsistency error when I ran. I can't figure out where it's coming from. I see this in the console:

reason: 'A view can only be associated with at most one view controller at a time! View > is associated with . Clear this association before associating this view with .'

I made the following change in application:didFinishLaunching:

// [window addSubview: viewController.view];
window.rootViewController = self.viewController;

But I still get the error. I looked all through the object graph in the debugger and I can't find out where the view is associated with another UIViewController. I'm running XCode 4.5.1 on OS X 10.7.5 and deploying on an iPhone 4S.


Reply to this email directly or view it on GitHub.

@nileshpunjabi
Copy link

hello guyz , i have solved using this stackoverflow answer http://stackoverflow.com/a/12450770/662096

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

3 participants