Welcome, Guest
Username Password: Remember me

SCTextFieldCell not changable / editable
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: SCTextFieldCell not changable / editable

SCTextFieldCell not changable / editable 1 year, 9 months ago #1

Hi all,

i'm using a SCTableViewModel to display some stored data, so nothing should be changed in the table.

 
 
titleField = [SCTextFieldCell cellWithText:@"title" withPlaceholder:@"" withBoundKey:@"1" withTextFieldTextValue:[defaults objectForKey:@"user_title"]];
titleField.editable = NO;
[section addCell:titleField];
 
 


With this code, i can still edit everything.

Did I miss anything?


cheers
  • magegu
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • Karma: 1

Re: SCTextFieldCell not changable / editable 1 year, 9 months ago #2

Hi Martin:

What you did is that you disabled editing the cell itself, not the textField control inside the cell. What you need to do is this:

 
...
titleField.textField.enabled = FALSE;
...
 
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72
  • Page:
  • 1
Time to create page: 0.75 seconds