Reputation: 1453
Hi, the default implementation of splitViewController:shouldHideViewController:inOrientation: method in the UISplitViewControllerDelegate protocol is as given below. -
return UIInterfaceOrientationIsPortrait(orientation);
How to locate this implementation in Xcode? I can go over to the declaration of this method in UISplitViewController.h file in Xcode, but not the implementation. So how does one know the default implementation of any built-in method?
Upvotes: 0
Views: 667
Reputation: 6763
The method shouldHideViewController
was only introduced in iOS 5
.
If your target build settings 'deployment target' are set to anything before iOS 5
, the Xcode
editor won't offer you this method through autocompletion (or any other that aren't available to your target iOS
version).
To check the iOS Deployment Target
in Xcode
, select your target, and look under the Summary
tab. Make sure this is at least iOS 5
.
For some methods only introduced in iOS
, such as setTintColor
methods, you can dynamically check the version in your code, but in this example (shouldHideViewController
), I think you're going to want to choose to use it, and go with iOS 5
only, or choose to not use it and use popovers.
Upvotes: 2