Fixed issue where [MGSplitViewController shouldAutorotateToInterfaceOrientation:] would ignore autorotate settings defined in the detail view controller.
Added Xcode4 workspace, ignored xcuserdata.
Fixed warnings: NSObject was implicitly cast to UIViewController
Updated to build settings Xcode 4.3.3 recommends.

Use Latest iOS (5.1) Base SDK
Use iOS 3.2 Target
Remove PREBINDING
Merge branch 'xcode4.3.3_project_settings' into master2
Merge branch 'xcode4_workspace' into master2
Avoid UIPopoverController warning on iOS 5.1.

On iOS 5.1, passing a CGRectZero here produces this following ominous message:
-[UIPopoverController presentPopoverFromRect:inView:permittedArrowDirections:animated:]: the rect passed in to this method must have non-zero width and height. This will be an exception in a future release.

This workaround was tested thusly:
On iOS 4.3, CGRectZero leaves a popover afterimage before rotation, so does the code below
On iOS 5.0, CGRectZero leaves a popover afterimage before rotation, the code below does not
On iOS 5.1, CGRectZero leaves a popover afterimage before rotation, so does the code below
Basically, this hack performs slightly better than the CGRectZero hack, and does not cause an ominous warning.
Merge branch 'fixed_popover_CGRectZero_warning' into master2
Turned on more warnings, fixed code causing warnings.

These warnings were mostly about implicit conversion from double to float.
Merge branch 'more_warnings' into master2
Run static analyzer on build. Fixed warnings.

Warnings were all about use of uninitialized values. Initialized values to zero or nil in unintialized cases.
Merge branch 'run_static_analyzer' into master2
Auto-rotate only when both master and detail want to.

Changed shouldAutorotateToInterfaceOrientation: to match the behavior of UISplitViewController where we don't autorotate unless all views support it.
Merge branch 'rotate_when_both_master_and_detail_rotate' into master2
Merge pull request #26 from cvee/master

[MGSplitViewController shouldAutorotateToInterfaceOrientation:] overrides autorotate settings defined in the detail view controller.
added code for removing the old detail and master view from their superviews when using the setDetailViewController and setMasterViewController (same way as done in setViewControllers)
updated demo project to work with iOS 6
fix for iOS 6 layout issues
Fixed clang warnings

Signed-off-by: Vincent Fournié <vincent.fournie@epyx.ch>
Merge commit '092f0188bcfd8f91c7119602e37b47606a4f961d'