Comments on: Programmatically taking a screenshot of your app in iOS https://archive.tiffanyb.net/2011/04/05/programmatically-taking-a-screenshot-of-your-app-in-ios/ Musings on cooking, travel, social media, higher ed & web technology by Tiffany Broadbent Beker Tue, 28 Jun 2016 20:58:16 +0000 hourly 1 https://wordpress.org/?v=4.9.7 By: Tiffany Broadbent Beker https://archive.tiffanyb.net/2011/04/05/programmatically-taking-a-screenshot-of-your-app-in-ios/#comment-66 Thu, 01 Jan 2015 15:41:18 +0000 http://tlbtechentries.wordpress.com/?p=12#comment-66 I have not tried creating a screenshot that wasn’t the full screen size. What kind of unusual things are you seeing in Photos?

]]>
By: SammyC https://archive.tiffanyb.net/2011/04/05/programmatically-taking-a-screenshot-of-your-app-in-ios/#comment-65 Tue, 30 Dec 2014 16:04:18 +0000 http://tlbtechentries.wordpress.com/?p=12#comment-65 Have you used that code to save a screenshot of an arbitrary UIView that is smaller than the screen (e.g. size( w=1024, h=600))?

Unusual things occur when viewing that image in the Photos app….

]]>
By: Trianna https://archive.tiffanyb.net/2011/04/05/programmatically-taking-a-screenshot-of-your-app-in-ios/#comment-64 Thu, 18 Dec 2014 09:40:40 +0000 http://tlbtechentries.wordpress.com/?p=12#comment-64 Thank you! Although its a bit blurry when it takes the picture, this has been the only code I have found that actually works!

]]>
By: Tiffany Broadbent Beker https://archive.tiffanyb.net/2011/04/05/programmatically-taking-a-screenshot-of-your-app-in-ios/#comment-63 Mon, 19 May 2014 12:58:34 +0000 http://tlbtechentries.wordpress.com/?p=12#comment-63 Glad the code work (mostly) for you. The blurred UILabels may be from the iOS library not handling the scaling of elements correctly when you resize. Have you tried just scaling the image outside of the app? Unfortunately I don’t have too many ideas of solutions for this (aside from a good ol’ Google search). If you do find out what’s causing the issue please add that in the comments.

]]>
By: jailani https://archive.tiffanyb.net/2011/04/05/programmatically-taking-a-screenshot-of-your-app-in-ios/#comment-62 Mon, 19 May 2014 12:37:43 +0000 http://tlbtechentries.wordpress.com/?p=12#comment-62 Above code works well but when try downscale the image little bit the uilabels are blurred even if i maintain the aspect ratio for resizing? what is the reason?

]]>
By: Tiffany Broadbent Beker https://archive.tiffanyb.net/2011/04/05/programmatically-taking-a-screenshot-of-your-app-in-ios/#comment-61 Thu, 15 May 2014 14:16:41 +0000 http://tlbtechentries.wordpress.com/?p=12#comment-61 You may be able to do something with looping the screenshot code to take successive screenshots. However, I’m not familiar with how you would string them together to make a video though inside the Android SDK (I know there are external apps that’ll do it but nothing I’m aware of that will do it inside another app, a Google search may help here). If you figure out a solution definitely let me know!

]]>
By: Sanjay Pathak https://archive.tiffanyb.net/2011/04/05/programmatically-taking-a-screenshot-of-your-app-in-ios/#comment-60 Thu, 15 May 2014 10:28:38 +0000 http://tlbtechentries.wordpress.com/?p=12#comment-60 Thanks, it was really helpful.
Can we take successive screenshots and compose a video out of it?
If possible please let me know. I will let you know if I succeed.

]]>
By: Tiffany Broadbent Beker https://archive.tiffanyb.net/2011/04/05/programmatically-taking-a-screenshot-of-your-app-in-ios/#comment-59 Sat, 24 Aug 2013 15:37:47 +0000 http://tlbtechentries.wordpress.com/?p=12#comment-59 I’m not sure, maybe check the documentation for using the Camera interface? This snippet was focused on capturing programmatically generated UI rather than including the camera.

]]>
By: Pablo https://archive.tiffanyb.net/2011/04/05/programmatically-taking-a-screenshot-of-your-app-in-ios/#comment-58 Sat, 24 Aug 2013 09:21:29 +0000 http://tlbtechentries.wordpress.com/?p=12#comment-58 What about if you are showing a layer with the camera? I try to capture the screen, but it only captures the objects, not what the camera shows.
Thanks.

]]>