Off="resideo_next_btn_press. PNG",
On="resideo_play_btn_press. PNG",
}
The function MainScene: ctor ()
The local group=cc. UI. UICheckBoxButtonGroup. New (display. TOP_TO_BOTTOM)
For I=1, 5 do
Group: addButton (cc) UI. UICheckBoxButton. New (MainScene. CheckBoxImg))
Group: setButtonLabel (cc) UI. UILabel. New ({text="option".. I, color=display. COLOR_WHITE}))
End
Group: align (200200). The display CENTER,
Group: addTo (self)
End
The Chinese 10:11:34
Group: setButtonLabel (cc) UI. UILabel. New ({text="option".. I, color=display. COLOR_WHITE}))
This line always prompt setButtonLabel is nil, comments, and will visit it normal
CodePudding user response:
Very obvious, this control is not setButtonLabel this method,Cc. UI. UICheckBoxButtonGroup is check box button group, set the button group ButtonLabel, don't you think it is pulled?
Only ccui setButtonLabel, I remember. The Button will have this method