-1
내 앱의 버튼을 눌렀을 때 위쪽으로 세는 코드가 있지만 탭 한 후 버튼의 배경색을 변경하고 싶습니다.버튼의 배경색 변경
backgroundColor
을 아래 코드에 간단하게 추가 할 수 있습니까?
- (IBAction)buttonPressed {
count++;
totalLabel.text = [NSString stringWithFormat:@"Hours\n%li",(long)count];
}
@end
을 참조하십시오. HTTP : // 350060318/how-to-change-bgcolour-of-button-when-tapped-in-swift/35660770#35660770 – PyPiePi