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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:45:34+00:00 2026-06-03T08:45:34+00:00

Initially i have a table view with only one add button. when user press

  • 0

Initially i have a table view with only one add button.

when user press this button i need to increment the cells count and add the cells as follows

How to write row count and how to add new rows by click on the add button

//Row count

 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 
{
    return **????** ;
}

// Content on cells/rows

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
       ??????
}

// ### Add New Row.. ###

-(IBAction)myAction:(id)sender
{
    ???????? ;
}

Thanks in advance…

  • 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-03T08:45:35+00:00Added an answer on June 3, 2026 at 8:45 am

    In your application You have to add values to Array when you performing action in btn.

    For example in your tableview you are displaying NSString in cell.textLABEL.text. These strings are in NSMutableArray.

    Now when buttonAction is called

    in
    myAction

    {
        NSString *newString =@"NEW CELL";
    
        [tableArray addObject:newString];
        [tableView reloadData];
    }
    

    Try this logic in your application regarding to your modal.

    I hope this logic will be helpful to you.

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

Sidebar

Related Questions

I'm having a table and i have a row which is initially set to
I have an iframe on a page that I need to initially have a
I have this jQuery datepicker code that initially set the minDate of the datepicker.
I am using jquery 1.6.4 and I have a table. Initially in the table,
In OS3.0 a lot of plain table views have an initially hidden search bar
In my table view I have 4 UIButton s, 2 in each row of
I'm trying to create horizontal scroll view(s). Each view containing one image. [done] Initially
I have a table view in an iPhone xcode tab bar application that shows
I have project on recruitment.In this project, at one form I have a grid
What I want to do is to have my table view controller appear when

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.