Search code examples
iphonescreenshotuitabbaruistatusbar

Take screenshot programmatically, without the status bar


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?


Solution

  • 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.