CGRect screenRect=[UIScreenmainScreen].bounds;

CGSize screenSize=screenRect.size;

//屏幕分辨率

screenSize.width;

screenSize.height;

05-07 13:45