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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:33:15+00:00 2026-06-01T21:33:15+00:00

I’m brand new to Xcode and Objective-C, and fairly new to programming in general

  • 0

I’m brand new to Xcode and Objective-C, and fairly new to programming in general so please correct me if I have a severe misunderstanding.

Here’s what I’d like to accomplish:

  • Create a Table View (empty upon startup)

  • Have user add and name cells via a Bar Button (pushes to a different view with a name Text Field and “Create” button I’m assuming)

  • Each created cell pushes to a new Table View with similar add/naming functionality

  • Then each of those cells push to a Text View

It seems to me that the best way to accomplish the first part is by populating a string array, then assigning those elements to the corresponding cells. That’s where I get stuck.

  • How do I populate a Table View with an array?

  • Should I create a new secondary Table View for every cell, or just populate the same one differently depending on which parent cell is selected?

  • And same question as previous for the Text Views at the end of the chain…multiple Text Views or just different text passed each time?

If you got this far, I sincerely thank you and please let me know if I need to clarify anything.

  • 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-01T21:33:17+00:00Added an answer on June 1, 2026 at 9:33 pm

    I hope you know how to create a table view.
    Now you should create a NSMutableArray to save your strings.

    @property (retain) NSMutableArray *stringsArray = _stringsArray;
    

    so your viewDidLoad will look like this.

    - (void)viewDidLoad
    {
        [super viewDidLoad];
        UITableView *myTableView    =   [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleGrouped];
        myTableView.dataSource      =   self;
        myTableView.delegate        =   self;
        [self.view addSubview:myTableView];
        [myTableView release];
    
        self.stringsArray = [NSMutableArray array];
    }
    

    Now the table view delegates

    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
        return 1;
    }
    
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
        return [self.stringsArray count];
    }
    
    - (UITableViewCell *)tableView:(UITableView *)tmpTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
        static NSString *CellIdentifier         =   @"MainCell";
        UITableViewCell *cell               =   [tmpTableView dequeueReusableCellWithIdentifier:CellIdentifier];   
        if (nil == cell) {
            cell    =   [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
        }
    
        cell.textLabel.text = [self.stringsArray objectAtIndex:indexPath.row];
    
        return cell;
    }
    

    Now when you click on your barbutton to add new user, you must add it to strings array and just call [tableview reloadData];

    I didn’t understand why you want a text view.

    Hope this helps!

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I have this code to decode numeric html entities to the UTF8 equivalent character.

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.