我有一个问题..我用这个http://kwigbo.com/post/318396305/iphone-sdk-custom-uialertview-background-color来创建我自己的自定义UIAlertView。 我不知道为什么,但是这是行不通的:自定义UIAlertView iphone
UILabel *theTitle = [theAlert valueForKey:@"_titleLabel"];
[theTitle setTextColor:[UIColor redColor]];
UILabel *theBody = [theAlert valueForKey:@"_bodyTextLabel"];
[theBody setTextColor:[UIColor blueColor]];
标题的颜色不会改变.. texbody的颜色它的确定。
- 如何自定义按钮?
[theAlert valueForKey:@“_ titleLabel”];回报什么? nssstring或uilabel? – Maulik