【问题标题】:Create Clean Rounded Corners on UITextField within UITableViewCell在 UITableViewCell 内的 UITextField 上创建干净的圆角
【发布时间】:2011-07-24 11:57:59
【问题描述】:

我正在一个带有圆角的 UITableViewCell 中创建一个 UITextField

UITextField *someTextField = [[UITextField alloc] initWithFrame:CGRectMake(165, 9, 135, 20)];

someTextField.backgroundColor = [UIColor whiteColor];
someTextField.borderStyle = UITextBorderStyleRoundedRect;

有没有办法让角落区域,圆角和方角之间的部分清晰,这样背景颜色就不会在那里显示。 任何帮助表示赞赏。 lq

[注意:我回答了我自己的问题。对不起,那是一个蹩脚的。 lq]

【问题讨论】:

    标签: xcode uitableview uitextfield


    【解决方案1】:
    // Doh! This gets rid of the white corners:
    someTextField.backgroundColor = [UIColor clearColor];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-11-27
      • 2015-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-17
      • 2016-04-13
      相关资源
      最近更新 更多