Getting text in scrollview to start at the top, not the bottom (Objective-C)

Getting text in scrollview to start at the top, not the bottom (Objective-C)

In my view, I load some text content in from a database within the viewDidLoad section of code.

In my view, I load some text content in from a database within the viewDidLoad section of code.

This works fine and looks fine, but the scrollview sits at the very bottom of the text when the app is run.

I added this code below:

-(void)viewDidAppear:(BOOL)animated {
[super viewDidAppear: animated];
[self.descriptionTextV setContentOffset:CGPointZero animated:YES];
}

And this now moves the scroll view to the top of the text, which is what I want, but it takes a couple of seconds to do this, and it is distracting.

I have tried

[self.descriptionTextV setContentOffset:CGPointZero animated:YES];

Which moves the text with an animated scroll over a few seconds.

[self.descriptionTextV setContentOffset:CGPointZero animated:NO];

Which 'jumps' the text from the bottom to the top.

And I have tried moving the setContentOffset command to the viewDidLoad and to a viewWillAppear section, but then it doesn't work at all.

Is there any way to get my text to start at the TOP of the text, not the bottom, without it animating, scrolling or jumping?

I just want the text to start at the top, and for there to be no visual jump that the user can see in the final app.

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

How to use Objective C Cocoapods in Swift Framework

My swift framework has dependency of Objective C Framework. How do I use that ?

C/C++ vs. Rust: A developer’s perspective

In this post, you'll see the difference between Rust and C/C++ in a developer’s perspective