2011-07-21 54 views

回答

2

創建填充,並且增加的UITextField如下:

UIView *paddingView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 5, 20)]; 
yourtextfield.leftView = unpaddingView; 
yourtextfield.leftViewMode = UITextFieldViewModeAlways; 

釋放填充視圖

+0

您的答案正在爲我工​​作。謝謝老兄:)我感謝你的努力。 –