2053194643-1.png
設(shè)置UITextField的邊框樣式
textField.borderStyle = UITextBorderStyleRoundedRect;//圓角
typedef enum {
UITextBorderStyleNone, // 無邊框
UITextBorderStyleLine, // 有黑色邊框
UITextBorderStyleBezel, // 有灰色邊框和陰影
UITextBorderStyleRoundedRect // 圓角
} UITextBorderStyle;