Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6336067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:58:40+00:00 2026-05-24T18:58:40+00:00

I have a navigation-based app like this: There is a table view with an

  • 0

I have a navigation-based app like this:

There is a table view with an overview of all chapters. If the user taps a chapter, I push another view controller on the stack which shows the contents of the book. It’s a small manual book with not much text and no images. Every chapter is displayed in one cell, and I know the exact contentOffset.y for each chapter.

Problem: I can’t make it start with the tapped chapter.

In the initialization method of my ReadingTableView, I set the desired contentOffset like this:

self.contentOffset = CGPointMake(self.contentOffset.x, targetContentOffsetY);

I also tried:

[self setContentOffset:CGPointMake(self.contentOffset.x, targetContentOffsetY) animated:NO];

The table view JUMPS to that desired offset, like if it was badly animated. You can see for a fraction of a second a blank table view, and then the whole thing very quickly moves up with animation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T18:58:41+00:00Added an answer on May 24, 2026 at 6:58 pm

    You’ve mentioned you are setting contentOffset at initialization method, since the UITableView is not actually loaded at your init method, the content size is not set neither. That’s why the animation did not have effect.

    If you are using an UIViewController or UITableViewController, try “setContentOffset:animated:” method in “viewDidAppear:” (careful with the Did word, not Will) method.

    Also, “scrollToRowAtIndexPath:atScrollPosition:animated:” is better for scrolling an UITableView.

    P.S.: Animation may also looks like a JUMP If your table cell loads very very slow, if you are not sure where is the problem, you can temporarily use an empty cell for test.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UIViewController inside of a navigation based app. I'd like the view
I'm writing a Navigation-Based iPhone app, and I'd like to have a UIToolBar docked
I have a navigation based app where a certain pushed view has a nice
I have a view based app (not navigation or tab based...) My main view
I have a tab bar + navigation based app and I'd like to launch
I have a navigation based iPhone app, and I want to load a view
I have a fairly straight-forward navigation based app. It is like a wizard in
I have a navigation based app. The first view (rootcontroller) starts with three large
I have UITableViewController (initiated by the Navigation-based app project template). I am overriding loadView
I have an iPhone app that is based on a navigation controller. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.