CGRect screenRect=[UIScreenmainScreen].bounds;CGSize screenSize=screenRect.size;//屏幕分辨率screenSize.width;screenSize.height;