Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想围绕 UITextField 角,以显示它是这样的
我想以编程方式执行此操作,而不是使用图像。
您可以在任何 UIView-Subclass 上设置 Corner-Radius。
#import <QuartzCore/QuartzCore.h>
UIViewController
UITextfield
[yourTextField.layer setCornerRadius:14.0f];
我想这会对你有所帮助。