我有一個問題..我用這個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