How to stop UITextView from scrolling up when entering it

@interface BCZeroEdgeTextView : UITextView
@end

@implementation BCZeroEdgeTextView

- (UIEdgeInsets) contentInset { return UIEdgeInsetsZero; }

@end

猜你喜欢

转载自zani.iteye.com/blog/1629598