Welcome, Guest
Username Password: Remember me

SCSelectionSection with key binding
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: SCSelectionSection with key binding

SCSelectionSection with key binding 1 year, 4 months ago #1

Hi,

I would like to have a selection section as part of a table view I am using for app settings. I am having a difficult time determining how to implement what I am looking for and hope someone in the forum can help me out a bit.

The section uses key binding and will display a list of domain names, such as Google, Yahoo, etc. to the user. Selecting one of the names will set that domain's url to the bound key - ie. selecting "Google" would set the bound key to "http:www.google.com".

Is something like this possible using STV?

I can post the code for what I have so far if that would help!

Thanks!

Re: SCSelectionSection with key binding 1 year, 4 months ago #2

Hi Brandon,

This feature have been newly added to STV 2.0 (I'll send you our latest beta right away). You should declare your section like this:

 
...
SCSelectionSection *section = [SCSelectionSection sectionWithHeaderTitle:nil
withBoundKey:@"domain"
withSelectionStringValue:nil
withItems:[NSArray arrayWithObjects:@"www.google.com", @"www.yahoo.com",
@"www.sensiblecocoa.com", nil]];
...
 


Please tell me if everything is working fine for you.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72

Re: SCSelectionSection with key binding 1 year, 4 months ago #3

That works great! Thanks again for such awesome customer service!
  • Page:
  • 1
Time to create page: 0.76 seconds