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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:24:45+00:00 2026-05-28T20:24:45+00:00

I have a custom UITableViewCell subclass, and a table view controller which I want

  • 0

I have a custom UITableViewCell subclass, and a table view controller which I want to insert text boxes into.

What I have done is setup a three dimensional array to store the sections, rows and then in the third dimension I have put the placeholder text I would like to display –

In the custom UITableViewCell subclass I have defined the text box as a weak property (I think this is correct…?)

@property (weak) IBOutlet UITextField *plainTextField;

I then add this text field to my data model array in

cellForRowAtIndexPath:

however, when I try to access the textfield from my array (specifically plainTextField.text) I get

''

I get the feeling that something is being released somewhere and I can’t figure out where (the actual textfield is not nil)

I guess, my question is really a design one — how do you get UITextFields into a UITableViewController and then get the text out of them later….?

Thanks!

  • 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-05-28T20:24:46+00:00Added an answer on May 28, 2026 at 8:24 pm

    I’ve ‘fixed’ my problem — it’s really based on the fact that you can’t have different content in UITableViewCells, as soon as anything is different you have to load it in cellForRowAtIndexPath. (A note in the UITableViewCell prepareForReuse method)

    What I did was reserve a spot in my data model for a UITextField, and then when cellForRowAtIndex path got to the cell it would query the data model, then instantiate a UITextField and add it to the cell.contentView or (here’s the tricky part) loop through [cell.contentview subviews] to find any UITextFields and call removeFromSuperview

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

Sidebar

Related Questions

I have a UISwitch inside a custom UITableViewCell (the subclass of which I call
I have a custom UITableViewCell which has an image & and some text. When
I have a custom UITableViewCell which is part of a navigation controller. The cell
I would want to create a custom UITableViewCell which should have a different appearance
I have a custom UITableViewCell subclass. I have set the contentView of my cell
Similar to this question I have a custom subclass of UITableViewCell that has a
I have a custom UITableViewCell which contains several UIButtons. Each button's frame position is
I have a view with a custom slider. We are using a subclass of
I have a custom UITableViewCell which I created in Interface Builder. I am successfully
I have a custom UITableViewCell , which have a button on it, IB linked

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.