I have UIScrollView inside which I have UITextView, when the text size increase I don't want the textview to scroll, but the scrollview should scroll as the text size increases. How can this be achieved?
Related
UItextview scrolls horizontally and vertically at the same time.
is there any way to disable scrolling in horizontal way and enable scrolling to the vertical way ?
thank you
Text view itself is a subclass of scroll view. Check its properties once.
i have View with alpha .5 with equal height and width to screen . I have to implement scroll view behind that view, Could anyone tell me how to implement it ?
As of Swift 5:
You can set the ScrollView as a child of the View in the Storyboard editor. Simply drag the ScrollView inside the View. The tree should look like the following:
View
ScrollView
< ... >
The ScrollView should be scrollable.
firstly, i want add 3 subviews with textview, image also edittext ;
view1 ; image,
view 2 : text, image,
view 3 : text, label
i want to scroll with async or with swipe
i used image scroll but can't find subviews
thanks for sharing
You can use an UIScrollView, or an UIPageViewController. Both will work, but the custom scroll view may be a bit simpler.
I tryed to use answer it this quiestion Limiting the scrollable area in UIScrollView however i didnt succeed in my problem.
I have a UIScrollView that contains 3 UIView one after another. When I press on the UIView I add a UITableView under UIView i pressed. At this moment I need to limit scrolling area, so I could scroll only this TableView and UIView.At another press on UIView I hide the UITableView and I can scroll further in horizontal direction. My question is - how its possible to implement scrolling only in that area I described? Only thing I know is I have to change contentSize of my UISCrollView, but when I do it I get to the beginning of UIScrollView.
My viewController already have main scrollView for show content as subview in Storyboard. After that i'm try to add new subview for show image gallery (UIScrollView) that also work fine. then when i'm close image gallery view, the main scrollView content size decrease down to fit of the viewController bounds. How can i avoid that situation? Thank you in advance.