I have implemented a UISplitViewController
using a Universal Storyboard in Xcode 6. UISplitViewController
is supported on iPhone running iOS 8 now, and by default only one view controller will be on screen at a time.
I need to know when both the master and detail view controllers are both on screen (iPad). I need to remove the disclosure indicators from UITableViewCell
s in the case both are on screen - only render them when only the master view controller is on screen (iPhone), just like the Settings app.
I could simply detect the device and only add them if it's an iPhone, but that's not recommended. It's possible a new device would display only one view controller and not identify as a phone. Another thought would be to detect if self.splitViewController
is nil
, but that won't work because it won't be nil
on iPhone nor iPad because it actually is in a split view controller on iPhone.
Is it possible to detect when both the master and detail view controller are visible on screen at the same time?