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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:05:50+00:00 2026-06-05T06:05:50+00:00

I have a table view with many cells. If I swipe on any of

  • 0

I have a table view with many cells. If I swipe on any of them, a delete button appears, and if I press it the cell disappears, but when I reload the table, it reappears. the file which is loading from is a txt file of this kind:

row1, row2, row3, row4, row5... 

How can I remove one of the row from the file, so remove for example row3…

…and have…

row1, row2, row4, row5...
  • 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-05T06:05:52+00:00Added an answer on June 5, 2026 at 6:05 am
    // Example file contents
    NSString *fileContents = @"row1, row2, row3, row4, row5";
    
    // Separate the titles into an array
    NSMutableArray *titles = [[fileContents componentsSeparatedByString:@", "] mutableCopy];
    
    // Remove row3 (at index 2 because indexes start from 0
    [titles removeObjectAtIndex:2];
    
    // Combine the array back into a string
    NSString *result = [titles componentsJoinedByString:@", "];
    
    // Log the result for debugging
    NSLog(@"%@", result);
    

    Prints: row1, row2, row4, row5

    This example code creates a string that looks like your text file, splits it into an array, removes one index, then combines the modified array back into a string.

    Hopefully you will find some of this code useful (I gather you would already have some of it or something similar in use).

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

Sidebar

Related Questions

I have a table view that has many cells. Each cell has its own
I have a table view with numerous cells. When I press one, a tick
I have so many cells in table view say nearly 500. Each and every
I have a table view cell that has many rows with a UITextView. In
I have a table view with 1 cell, but there are cell borders shown
I have customized my table view cell accessory with button. Everything went fine until
I have a table view of custom cells representing individual uploads and each cell
I have a table contents many fields db.define_table('i2l_templates', Field('id','id', represent=lambda id:SPAN(A(T('View'),_href=URL('view_template',args=id)),' | ', A(T('Edit'),_href=URL('edit_template',args=id)))),
I have a table view controller with (among others) a cell that is to
I have a table view with a custom cell ( UISwitch on every cell

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.