iOS获取屏幕宽度 在AppDelegate.h文件中声明一个全局变量: @property int currentWidth;//当前屏幕宽度在AppDelegate.m中,添加:@synthesize currentWidth;然后在(BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictiona iOS 2023-10-07 59 点赞 0 评论 89 浏览