I have a Main View with frame
0, 60, 768, 1024,
It has many views as subView. First subview is an UIImageView
. The property associated with ImageView is AspectFit. Now I want to take screenshot of the only part of screen which bounds that of UIImageView
(There are at least 4-5 Subviews which CAN or can not be above This UIImageView) The standard coding given by iPhone has been used here. The image i get is of Main View. Now to get only screenshot of UIImageView and whatever above is, I need to set the dimension of my main view to envelop only UIImageView.
Suppose The image size is 100,100. When I press button, How should I set the Bounds/fRAME
OF my mainView? Or In other terms how can I get the frame of UIImageView
relative to self.view