简体   繁体   English

将uitextfield背景颜色更改为灰色iPhone SDK

[英]Change uitextfield background color to grey iphone sdk

I use [txtfld setBackgroundColor:[UIColor greyColor]] but the compiler sais may not respond and crashes not working! 我使用[txtfld setBackgroundColor:[UIColor greyColor]],但是编译器sais可能没有响应,并且崩溃不起作用!

How can i make the background color grey? 如何使背景颜色为灰色?

there is a thread that indicates there is a problem if the field has rounded corners 如果该字段具有圆角,则有一个线程指示存在问题

http://icodeblog.com/2010/01/04/uitextfield-a-complete-api-overview/ http://icodeblog.com/2010/01/04/uitextfield-a-complete-api-overview/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM