
UIControlsRadio::append 메소드의 첫 번째 인자는 UIControlsRadioItem 객체를 전달해야 합니다.
UIControlsRadioItem 객체는 라디오 버튼의 항목을 나타내며, 생성 시 항목의 텍스트, 값, 이미지 등을 지정할 수 있습니다.
예를 들어, 다음과 같이 UIControlsRadioItem 객체를 생성하고 append 메소드에 전달할 수 있습니다.
#hostingforum.kr
cpp
UIControlsRadioItem* item1 = new UIControlsRadioItem("항목1", "value1", UIControlsRadioItem::IMAGE_TYPE_NONE);
UIControlsRadioItem* item2 = new UIControlsRadioItem("항목2", "value2", UIControlsRadioItem::IMAGE_TYPE_NONE);
uiControlsRadio->append(item1);
uiControlsRadio->append(item2);
이러한 방식으로 UIControlsRadio::append 메소드를 사용하여 라디오 버튼 항목을 추가할 수 있습니다.
2025-05-01 11:42