I wonder if there is a way to take a screenshot of current view screen with everything on it - navigationbar, content, tabbar - but except the statusbar, is there a way to do that?
- 2I believe there is not. However, you can take the screenshot and then crop the image.PengOne– PengOne2012-03-20 01:05:05 +00:00Commented Mar 20, 2012 at 1:05
- possible duplicate of How Do I Take a Screen Shot of a UIView?jtbandes– jtbandes2012-03-20 14:15:21 +00:00Commented Mar 20, 2012 at 14:15
2 Answers
As suggested in the comments, the best way I know to go about this is to take a screenshot and then use the graphical context parameters to crop out only the portion of what you need.
Check this: Adjusting size of in app screenshot
Above question has an answer (by me:) ) to crop out the navbar and the tabbar, but you can modify it to crop out whatever portion you need.
Comments
I guess you could begin a new image context, draw the main view controller's view to that context, get an UIImage from that context, close that context, and you'd end up with a screenshot of the main view controller's view, which should have everything you wanted in your screenshot.