Author Topic: How to reset UIToggle to initial value  (Read 2256 times)

Oakshiro

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
How to reset UIToggle to initial value
« on: February 06, 2014, 08:14:27 AM »
Hi there,

I have 3 UIToggle groups:

Group 1 Contains 2 tabs on the top of the screen
Group 2 is contained inside a transform that is being activated when tab 1 is clicked, and contains a set of 8 uitoggles, to change pages inside the tab content
Group 3 is contained inside a transform that is being activated when tab 2 is clicked, and contains a set of 8 uitoggles, to change pages inside the tab content

The scenario is:
1.- I am on first tab, and with first page actived
2.- I click on page 4, for instance, the content appears
3.- I click on tab 2
4.- I click on tab 1. Here i launch a "load page 1" method, which changes the content and activates the first Group 2 uitoggle (value = true).
The problem is that both page 4 and page 1 are now being highlighted.

Is there a way to "reset to initial state" the whole group?

Thanks!!

Oakshiro

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to reset UIToggle to initial value
« Reply #1 on: February 06, 2014, 09:12:14 PM »
I just had a look into it and it seems "startsChecked" is hidden for some reason. That's a mistake... I'll make it a public value.