【发布时间】:2011-09-07 09:14:00
【问题描述】:
我有一个问题.. 我用这个http://kwigbo.com/post/318396305/iphone-sdk-custom-uialertview-background-color 来创建我自己的自定义 UIAlertView。 我不知道为什么,但这不起作用:
UILabel *theTitle = [theAlert valueForKey:@"_titleLabel"];
[theTitle setTextColor:[UIColor redColor]];
UILabel *theBody = [theAlert valueForKey:@"_bodyTextLabel"];
[theBody setTextColor:[UIColor blueColor]];
title的颜色没有变化..texbody的颜色就可以了。
- 如何自定义按钮?
【问题讨论】:
-
[theAlert valueForKey:@"_titleLabel"];返回什么? nssstring 还是 uilabel ?
标签: iphone objective-c ios customization uialertview