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

  • Home
  • SEARCH
  • 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 6695691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:15:08+00:00 2026-05-26T06:15:08+00:00

if indexOfObject called on an NSMUtableArray returns the place in that array of that

  • 0

if indexOfObject called on an NSMUtableArray returns the place in that array of that object, how you do start a UITableView at that Integer rather than at the beginning of the array?

Ex. If I Have an array of 200 objects, and indexOfObject returns 52, how do I start the list of 200 at 52 instead of 1?

  • 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-26T06:15:09+00:00Added an answer on May 26, 2026 at 6:15 am

    You’d want to make use of:

    - (void)scrollToRowAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UITableViewScrollPosition)scrollPosition animated:(BOOL)animated

    of UITableView.

    So, in your case:

    NSIndexPath *offsetIndexPath = [NSIndexPath indexPathWithIndex:52];
    self.tableView scrollToRowAtIndexPath:offsetIndexPath atScrollPosition:UITableViewScrollPostionTop animated:YES];
    

    UITableViewScrollPositionTop tells the table view to place this row at the top of the screen.

    You can obviously decide if you want to animate this transition or not.

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

Sidebar

Related Questions

I have a core data recipe object that contains an ordered list of ingredient
I have a UITableView that I am loading via JSON. So my logic goes
In my Brain model I have an NSMutableArray property called stockCars which holds 8
I'm new in Obj C programming, so i will start from beginning I have
I have a UITableView and basically I'm making some in app settings, and if
I have a code snippet that looks like this: [tableView beginUpdates]; [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath]
I have an Array {-1,0,1,2,3,4...} I am trying to find whether an element exist
I have an app that has a UINavigationController that pushes a UITabBarController into view.
I have an NSArray filled with UIImageViews. I want to do an indexOfObject call
How can I get my object index? I have a dictionary containing arrays and

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.