UItextview scrolling horizontally and vertically - xcode

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.

Related

Window becomes non-resizable after adding Autolayout constraints

I have an IKImageBrowserView inside a NSScrollView.
I added Autolayout constraints to fix the top of the scroll view to the textfield above it and the bottom of the scroll view to the bottom of the window.
The desired behaviour is, that the scroll view (and the IKImageBrowserView with it) will grow and shrink vertically when you grow and shrink the window vertically.
The actual behaviour is, as soon as i added the constraints, the window is no longer vertically resizable.
Why is that? How can I achieve the desired behaviour?
You can examine the constraints by doing:
NSArray* constraints = [window.contentView constraintsAffectingLayoutForOrientation:NSLayoutConstraintOrientationVertical];
NSLog(#"%#", constraints);
You could also do [window visualizeConstraints:constraints] to explore interactively.
See Auto Layout Guide: Resolving Auto Layout Issues – Debugging in Code.

unity3d scroll bar horizontal doesn't work

I have a panel with list of gameobjects and scroll bar. Some times ago I have make it with vertical scrolling. But now when I want to horizontal align and scroll, it doesn't work.
Have anyone ideas why it can be?
to make a horizontal scrollbar check this
Horizontal scrollbar
You use
GUI.HorizontalScrollbar
instead of verticalScrollbar

Setting the scrollable area UISCrollView

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.

how to display the UISrcollView vertical Bar?

I define a UILabel inside a UIScrollView in my ipad.
But how to display the UISrcollView vertical Bar when the text is bigger than the scrollView ?
When I touch the scrollView the vertical bar appeared, but how to display it without touching ?
Regards
Fred
I think, its not possible. Setting showsVerticalScrollIndicator and showsHorizontalScrollIndicator properties you can display the scroll bar.
You can use flashScrollIndicators when the view becomes visible. It will guide user that scrollable content is available.

How to add a button or image to a vertical table header of scrollview?

I have seen a lot of programs had some buttons or images in the vertical or horizontal scrollview table header or bottom and click it to invloke some events, But I have searched interface builder library and not found some widget I can used , how these programs to implement it ? Thank you very much!
To add just above the vertical scroll bar, see -[NSTableView setCornerView:].
To add to the left of the horizontal scroll bar, you'll need to subclass NSScrollView and (in addition to creating/configuring/adding the auxiliary view of your choice) override -tile. You'd call [super tile], then adjust the horizontal scroller to make room, then position the auxiliary view to taste.

Resources