我在设置UIAlertController
的textfield
时遇到了一些问题。
我正在使用以下代码向alertcontroller
添加一个圆角textfield
:
[alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {
textField.placeholder = @"placeholder";
textField.borderStyle = UITextBorderStyleRoundedRect;
}];
然而,结果是这样的: 我该如何去掉外边框和背景颜色?让它看起来像他们在这个教程中所展示的:http://useyourloaf.com/blog/2014/09/05/uialertcontroller-changes-in-ios-8.html。
谢谢!