how to detect and use an external display in IOS