`
lizhuang
  • 浏览: 887122 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

UITextField左边显示图片

ios 
阅读更多
The overlay view displayed on the left side of the text field.

@property(nonatomic, retain) UIView *leftView
Discussion
You can use the left overlay view to indicate the intended behavior of the text field. For example, you might display a magnifying glass in this location to indicate that the text field is a search field.

The left overlay view is placed in the rectangle returned by the leftViewRectForBounds: method of the receiver. The image associated with this property should fit the given rectangle. If it does not fit, it is scaled to fit. If you specify a control for your view, the control tracks and sends actions as usual.

Availability
Available in iOS 2.0 and later.
See Also
– leftViewRectForBounds:
Declared In
UITextField.h
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics