获取ipad方向

UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
原文地址:https://www.cnblogs.com/chenfulai/p/2068794.html