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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:32:30+00:00 2026-06-02T07:32:30+00:00

I´m doing a sample project in order to learn about prototype cells on iOS

  • 0

I´m doing a sample project in order to learn about prototype cells on iOS and, most important, target action triggered by UIControls inside those prototype cells. I´ve already accomplish this by subclassing the UITableCell, setting a protocol and have the UITableViewController be the delegate.

The problem I´m encountering now is that I´m setting the title text of the buttons inside cellForIndexPath by something like this (I´m not on my computer now):

MyCustomCell *cell=... (as usual)
cell.button.Title.text=[datasource objectAtIndex:indexPath.row];

this works ok UNTIL I click on the button. Then the button displays the default Title (which by the way if I don´t set on storyboard, no title appears at all).

refreshing the row with animationAutomatic after the action triggered by the button sets the title back to what I want, but while clicking on it, the default title still appears and I don´t find it very attractive for the user. (I certanly woudn´t like to see if I buy an App).

Does anyone have a pointer here to help me out?

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-02T07:32:31+00:00Added an answer on June 2, 2026 at 7:32 am

    You should not modify the text of buttons directly through the properties, rather you should use the setTitle:forState: selector like this:

    [cell.button setTitle:text forState:UIControlStateNormal];
    

    Documentation: http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIButton_Class/UIButton/UIButton.html

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

Sidebar

Related Questions

I was doing a sample app in ipad. I added about 4 to 5
I am very new to grails.I am doing one sample project for image uploading
I am doing my first project in ASP.NET MVC and using the NerdDinner sample
I'm very new to PHP; and am doing a few sample projects to help
hello i m doing a very simple Asp.net application project namespace WebApplication1 { public
Anyone have a sample of doing a jQuery notification/popup/calendar in Intraweb ? A simple
I'm doing shared hosting with GoDaddy and I developed a sample ASP.NET MVC app
Can anyone post a sample code wherein theres a running timer(javascript settimeout) and doing
I am doing on a project for searching through an image database, and when
I'm doing a project for a class which focuses on storing a huge matrix

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.