layoutSubviews called before view is loaded #40

Open
werner77 opened this Issue May 27, 2011 · 0 comments

Projects

None yet

1 participant

I think layoutSubviews in MGSplitViewController should only be called when self.isViewLoaded == YES. The problem is that layoutSubViews causes a load view for the root and details view controller as well and this may be too soon in the lifecycle, e.g. before the nib is fully loaded causing viewDidLoad to be called twice for those view controllers.

Also setup should not instantiate the MGSplitDividerView, this code should be moved to viewDidLoad (and should be deallocated in viewDidUnload).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment