I’m new in Iphone. I have an UITextView inside a UIImageView . Now I need to dynamically resize the UIImageView so that its textview also change its size dynamically. Moreover I can move this UIImageView with UITextView around the screen. If any one knows this using UIGuesture please help me.
Any help would be appreciated
UIImageViewobject, look at theUIPinchGestureRecognizer. It will have a property calledscalethat you can use to change its size.UITextViewobject that is the subview, you can look atautoresizingMaskproperty inherited fromUIView. Set it appropriately so that the text view scales in response to its super view.UIPanGestureRecognizer. You can get the translation usingtranslationInView:. Use this to modify the center of the image view object. This should move the image view as you drag your finger around.I hope you’ve gone through the
guide. Let us know if you face problems implementing this and put some code so that we can guide you in the right direction.