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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:37:31+00:00 2026-06-16T00:37:31+00:00

I am asking this question as I didn’t get any proper/relevant answer (means I

  • 0

I am asking this question as I didn’t get any proper/relevant answer
(means I got the answer but not in the form that I want).
Hope anyone of you can provide me the right solution.

OK , My Question is about editable labels.
I have one table view that contains customized cell(s) with 6 different labels in each cell.

What I Want :

1) I want to edit the label when user touches it (Changes will be
saved).

2) When some save button is pressed, I want all the values from the
table view to be saved in an array.

I am attaching screenshot herewith (Hope it may help you to understand my question).

enter image description here

Note :

In the above screenshot what i want is when user touches the “Cotton” word, It can be editable and when user touches the next word (suppose “Pallet”) , change in the first word (means in “Cotton”) must be saved. There will be one button called “Save”(not in screenshot). When user presses “Save” button , all the values of Tableview should be saved in some array.

It will be very helpful if you can provide me the answer with relevant code.

  • 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-16T00:37:32+00:00Added an answer on June 16, 2026 at 12:37 am

    First of all, in this case, it is best to forget about using labels and use UITextField instead. If you implement UITextFieldDelegate’s methods, they will let you know when one starts editing or finishes.

    So here is what I would do. Create a subclass of UITableViewCell and make it look exactly how you want it to. Also, it should also have an NSIndexPath property, so you will always know exactly which row gets edited. (if your cells look anything like those in the screen-shots you provided, this step should be rather easy)

    Also, it should implement the UITextFieldDelegate protocol and also create one that will let you know when a cell has been edited so you can save it’s contents.

    In your controller, you should create a temporary array that will be a copy of you data source. When a cell gets edited, you should update the info in your temporary array. On pressing save, you should save this array and make it the data source. Else, just set it to nil and ARC will take care of it.

    I can’t provide you with code for now, but it shouldn’t be hard to code it once you understand the logic.

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

Sidebar

Related Questions

This question didn't receive any satisfactory answers, so I'm asking again. I can get
I searched before asking this question. I didn't find an answer probably because I
I am asking this question, because I didn't find yet any posts that are
sorry for asking this question but i didn't found the right solution for this
I am getting this question due to another answer on here, but didn't explain
I am finally asking this question as I have never actually found an answer.
Hope you guys don't mind me asking this question, but I find myself at
Sorry for asking a basic question like this but I've been reading on this
I'm asking this as a new question because people didn't seem to understand my
This might seem like a silly question, but after asking some questions on stackoverflow

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.