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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:08:32+00:00 2026-06-14T23:08:32+00:00

I want manage a chat with messages (as native iphone application) where in a

  • 0

I want manage a chat with messages (as native iphone application) where in a first time only ten messages are displayed. Then, i want to be able to load and displayed ten others messages in the UItableview.I’ve found a method to add object in an array and after in the tableView :

-(IBAction)addCity:(id)sender
{
    [dataArray addObject:@"City"];
    NSArray *paths = [NSArray arrayWithObject:[NSIndexPath indexPathForRow:[dataArray count]-1 inSection:1]];
    [[self tableView] insertRowsAtIndexPaths:paths withRowAnimation:UITableViewRowAnimationTop];
    [tableView reloadData];
}

But my data are contained in a NSDictionnary (avatar, message, name).
Can i use the same method with a NSDictionnary ? How ?
Is there an other way ?

Thanks everyone for your help !

  • 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-06-14T23:08:33+00:00Added an answer on June 14, 2026 at 11:08 pm

    The basic problem is that when you’re asked to provide cell information, you have to be able to find it using two numbers: one number that matches a section in your table and another that matches a row within that section. Dictionaries aren’t very good at finding things by number; arrays are.

    From what you’ve written, it sounds as if each message is in a dictionary. That suggests that — assuming your table only has one section — you need an array of dictionaries so that a dictionary can be found by row number and then the message portion put into a table cell.

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

Sidebar

Related Questions

For my iPhone app, I want to manage values either in NSMutableDictionary or NSMutableAarray
I want to start manage application ( Settings -> Application -> manage application ->
I want to manage shared folders on a remote machine from a C# application.
I want to manage user and roles in a dedicated application. For example a
Following this blog article I enabled my application to load i18n messages from the
I want to manage permissions and access to a SQL Server database server on
i want know how i can manage multiple twitter account on iOS in my
I want to try CMake to manage a new C++ project. However, some files
I want to ask pro developers out there that how they manage a big
I want to write a unit test for a Django manage.py command that does

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.