Welcome, Guest
Username Password: Remember me

UISelectionCell broken?
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: UISelectionCell broken?

UISelectionCell broken? 1 year, 7 months ago #1

It seems to me that SCSelectionCell doesn't work. It will display the correct selection if the selection is pre-set. But it will not change the selection. This is both the case in my own app and in the Core Data demo app.

I'm looking at the code for SCSelectionCell, and I can't see how the selections are supposed to be transfered from the SCSelectionSection to the Cell.
  • skyfex
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 1

Re: UISelectionCell broken? 1 year, 7 months ago #2

Hi Audun,

What's your current STV version? I'll send you our latest RC version, please tell me if this is still not working for you.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: UISelectionCell broken? 1 year, 7 months ago #3

1.5.9
  • skyfex
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 1

Re: UISelectionCell broken? 1 year, 7 months ago #4

Okey, I tried with 1.5.9, and now the value is updated, but the label isn't updated after the selection was changed. I either have to select a new value again (in case the label will display the last value), or I have to go out of the view and back in again.
  • skyfex
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 1

Re: UISelectionCell broken? 1 year, 7 months ago #5

Are you experiencing the same issue with our Core Data sample? What's the type of property that you're binding the selection to? (e.g. NSNumber or NSString?)
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: UISelectionCell broken? 1 year, 7 months ago #6

Seems like the Core Data sample works fine.

I'm binding to NSNumber, here is the setup code for the Cell:

homeShirt is a number

 
SCSelectionCell *homeShirtCell = [SCSelectionCell cellWithText: @"Home Shirt Color"
withBoundObject: self.team
withSelectedIndexPropertyName: @"homeShirt"
withItems: [NSArray arrayWithObjects:
@"Black", @"White", @"Red",
@"Blue", @"Green",@"Yellow",
@"Teal", @"Purple", @"Brown",
@"Pink", @"Orange", @"Gray", nil]];
 
[detailsSec addCell: homeShirtCell];
 
  • skyfex
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 1
  • Page:
  • 1
  • 2
Time to create page: 1.69 seconds