I have 2 imageViews like below. (ScrollView has subview of imageView)
i want to take the image of each one and merged to one.
i tried using taking screenshot and crop. but when it comes to different iphone screensizes and resolutions it doesn't work well.
can any one guide me how to do this?
I think your way is right, also you can solve scale size problem very easily with this method.
But you should edit sizes again. For example if you're using autolayout you can create
IBOutlet
and than use it instead oflayer.frame.size
property which I used.Hope it helps.
Why not just add them both to one UIView?
It is also possible to add a subview to your image view and extend the frame.