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.

objective-c ios

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How to Find Ulimit For user on Linux

Explains how to find ulimit values of currently running process or given user account under Linux using the 'ulimit -a' builtin command.

MEAN Stack Tutorial MongoDB ExpressJS AngularJS NodeJS

MEAN Stack Tutorial MongoDB ExpressJS AngularJS NodeJS - We are going to build a full stack Todo App using the MEAN (MongoDB, ExpressJS, AngularJS and NodeJS). This is the last part of three-post series tutorial.

Creating RESTful APIs with NodeJS and MongoDB Tutorial

Creating RESTful APIs with NodeJS and MongoDB Tutorial - Welcome to this tutorial about RESTful API using Node.js (Express.js) and MongoDB (mongoose)! We are going to learn how to install and use each component individually and then proceed to create a RESTful API.

systemctl List All Failed Units/Services on Linux

Explains how to use the systemctl command to list all failed units or services on Debian, Ubuntu, CentOS, Arch, Fedora, and other Linux distros.

CentOS Linux 8.2 Released and Here is How to Upgrade it

CentOS Linux 8.2 (2004) released. This release adds corrections for security issues based upon RHEL 8.2 souce and here is how to upgrade it.