I want to create uitextfield with the top left and right corner as rounded and bottom left and right corner as normal rectangle. Is there any way to create this kind of UITextField. I tried set the contentRadius 开发者_开发知识库property to 10.0f it gives me fully rounded rectangle textfield. Please help me to create a two side rounded corner textField.
textField.layer.cornerRadius = 10.0f;
Add this
#import <QuartzCore/QuartzCore.h>
精彩评论