如何以编程方式检查ios设备的当前userInterfaceSt

如何以编程方式检查ios设备的当前userInterfaceSt