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 112565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:33:53+00:00 2026-05-11T02:33:53+00:00

I have an application that works some what similar to how iPhone’s Contact application

  • 0

I have an application that works some what similar to how iPhone’s Contact application works. When we add a new Contact user is directed to a view only screen with Contact information. If we select ‘All Contacts’ from the navigation bar, user is navigated to list of all contacts where the recently added contact is in view.

We can move the view to a particular row using:

    [itemsTableView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionBottom]; 

… but it’s not working. I’m calling this right after calling:

    [tableView reloadData]; 

I think I’m not suppose to call selectRowAtIndexPath:animated:scrollPosition method here. But if not here, then where?

Is there any delegate method that gets called after the following method?

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath; 
  • 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. 2026-05-11T02:33:53+00:00Added an answer on May 11, 2026 at 2:33 am

    I think I’ve got a similar app: A list of item., tap ‘+’ -> new screen, come back and see the updated list, scrolled to show the added item at the bottom.

    In summary, I put reloadData in viewWillAppear:animated: and scrollToRowAtIndexPath:... in viewDidAppear:animated:.

    // Note: Member variables dataHasChanged and scrollToLast have been // set to YES somewhere else, e.g. when tapping 'Save' in the new-item view.  - (void)viewWillAppear:(BOOL)animated {     [super viewWillAppear:animated];     if (dataHasChanged) {         self.dataHasChanged = NO;         [[self tableView] reloadData];     } else {         self.scrollToLast = NO; // No reload -> no need to scroll!     } }  - (void)viewDidAppear:(BOOL)animated {     [super viewDidAppear:animated];     if (scrollToLast) {         NSIndexPath *scrollIndexPath = [NSIndexPath indexPathForRow:([dataController count] - 1) inSection:0];         [[self tableView] scrollToRowAtIndexPath:scrollIndexPath atScrollPosition:UITableViewScrollPositionBottom animated:YES];     } } 

    I hope this helps. If you add something in the middle of the list, you could easily scroll to that position instead.

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

Sidebar

Ask A Question

Stats

  • Questions 74k
  • Answers 74k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer IMO TABLE functions are more usefull if you planned to… May 11, 2026 at 2:21 pm
  • added an answer I don't believe you can hack via the URL. Someone… May 11, 2026 at 2:21 pm
  • added an answer If you manually move the initialisation method to the .cpp… May 11, 2026 at 2:21 pm

Related Questions

I have an application that works some what similar to how iPhone's Contact application
Some background: I have an database that I want to use linq-to-sql to update
I'm about to create a web application that requires a lot of different web
This is a Windows Forms application. I have a function which captures some mouse
I have some code in my application that looks something like this: char *hash

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.