grgcombs / IntelligentSplitViewController

A smarter UISplitViewController that rotates correctly when placed inside a UITabBarController
Other
111 stars 22 forks source link

Warning in iOS SDK 6 #16

Closed tonyrh closed 9 years ago

tonyrh commented 11 years ago

It looks like modalViewController is deprected in iOS 6, so I get the warning. Also, does this work at all in iOS 6? Trying the demo app in iOS 6 the layout never rotate on orientation change?

grgcombs commented 11 years ago

hrm. Running an app built to iOS 4.x on an iPad with iOS 6 still works as far as I can tell. I wonder if it's something that only pops up when you specifically target iOS 6?

do you have auto-layout turned off? I haven't attempted to wrap my head around auto-layout yet, so I don't know if there are problems related to that.

g

On Nov 26, 2012, at 5:24 PM, tonyrh notifications@github.com wrote:

It looks like modalViewController is deprected in iOS 6, so I get the warning. Also, does this work at all in iOS 6? Trying the demo app in iOS 6 the layout never rotate on orientation change?

— Reply to this email directly or view it on GitHub.

tonyrh commented 11 years ago

Yes i have auto-layout turned off in every xib. Actually I did not change any project setting or anything else in your code. I just opened the IntelSplitDemo.xcodeproj and tried to run in on my iPad. Xcode version is 4.5.2, iPad is running on iOS 6.0.1.

EDIT: I was looking at MGSplitViewController and I found this discussion: https://github.com/mattgemmell/MGSplitViewController/issues/69 Maybe this could help shed light on the issue I'm experiencing?

EDIT 2: I found that replacing [self.mainWindow addSubview:self.tabBarController.view]; with [self.mainWindow setRootViewController:self.tabBarController]; in IntelSplitDemoAppDelegate.m seems to solve any issue with rotating under my environment.

pj17903 commented 11 years ago

@tonyrh: thanks for posting your fix, had the same issue on iOS6, that did the trick.