I have UIViewController which contain UIImageView and UITextView. All views (and their frames) I added programmatically. UIImageView is small and on the top of UIViewController but UITextView is large and beyond the screen. Scrolling work only at TextView. How can I do scrolling for all UIViewController?
I have UIViewController which contain UIImageView and UITextView . All views (and their frames)
Share
You need to add to your UIViewController’s view an
UIScrollViewand theUIImageViewand theUITextViewinside theUIScrollViewand set the UIScrollView’scontentSizeproperty the appropriate values.