Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSScrollView scrolling to the bottom of View

in Mac OS ap development, i have created a form using different textFields inside a scrollView. Now when i load that view, the scrollView automatically scrolls to the bottom and every time i need to scroll it up to View the content from starting. Any suggestions?

like image 208
Mr.B Avatar asked Oct 26 '25 09:10

Mr.B


1 Answers

By default the document view of a scroll view has an origin in the lower left. This us generally true on OS X. If you prefer a document view that has origin in upper left, you need a custom view for the document view with an override of isFlipped returning YES.

Otherwise you can save state and scroll to the area programatically.

like image 165
uchuugaka Avatar answered Oct 29 '25 00:10

uchuugaka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!