开发者

Padding in UITextField

Is it possible to set 开发者_如何学Gopadding inside a UITextField, if so how?


I was also wondering, here you are:

UIView paddingView = new UIView(new CGRect(0, 0, 5, 20));
YourTextField.LeftView = paddingView;
YourTextField.LeftViewMode = UITextFieldViewMode.Always;

You can modify padding size of course by changing values above.

Hope this will help.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜