UI 경고보기의 텍스트 색상과 배경색을 변경하고 싶습니다. 다음 코드를 사용했습니다. UILabel * theTitle = [alertView valueForKey : @ "_ titleLabel"]; [theTitle setTextColor : [UIColor whiteColor]];UIAlertview valueForKey : @ "_ backgroundImageView"
UILabel *theBody = [alertView valueForKey:@"_bodyTextLabel"];
[theBody setTextColor:[UIColor whiteColor]];
UIImageView *backgroundImageView = (UIImageView *)[alertView valueForKey:@"_backgroundImageView"];
[backgroundImageView setImage:[UIImage imageNamed:@"background.png"]];
이것은 ios 6에서 정상적으로 작동합니다. 그러나 ios 7로 업그레이드 한 후에이 방법이 작동하지 않습니다. 사용자 정의 uialertview를 만들고 싶지 않습니다. 이 문제를 해결할 수있는 간단한 해결책을 제안하십시오.