How can I take a screenshot of the iPhone5 application?

An iPhone5 screenshot is required for the app store:

"To save your changes, all screenshots of iPhone 5 and iPod touch (5th generation) must be a .jpeg, .jpg, .tif, .tiff or .png file with 1136x640, 1136x600, 640x1136 or 640x1096 pixels, at least 72 DPI and in the RGB color space. "

I tried using the iOS simulator and using the screenshot option, but this file is too small.

Does anyone know how to take one in higher resolution?

I would use design files, but they have no real data, and my application will look stupid!

Any help would be appreciated - forums and about three hours of googling didn't help me :(

Thanks!

+4
source share
4 answers

Use your simulator and use the control command + + C. This will only copy the simulator screen. Open the preview and then the file → new from the clipboard. This is much better than trying to guess with the -shift-4 command.

Hope that helps

+4
source

I am using iOS-Simulator Cropper to capture screenshots. It automatically removes carrier information from the top; status bar.

Screenshot of the app running on OSX

+4
source
  • Launch iOS Simulator with xCode 4.x
  • in the simulator, select the type of device.
  • in the top menu "file"> "save screenshot"
  • find the file on the screen Finder iOS Simulator ..... '
+1
source

Use this code to capture any kind of screen. I used it.

- (void)mapViewDidFinishLoadingMap:myMapView { [self captureScreenInRect:CGRectMake(0, 0, 320, 480)]; } - (UIImage *)captureScreenInRect:(CGRect)captureFrame { CALayer *layer; layer = myMapView.layer; UIGraphicsBeginImageContext(myMapView.frame.size); CGContextClipToRect (UIGraphicsGetCurrentContext(),captureFrame); [layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *screenImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIImageWriteToSavedPhotosAlbum(screenImage, nil, nil, nil); return screenImage; } 
-1
source

Source: https://habr.com/ru/post/1444210/


All Articles