项目
在 GitHub 查看
inamiy/YIPopupTextView
关于
facebook's post-like input text view for iOS (Beerware license)
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文YIPopupTextView
facebook's post-like input text view for iOS. (Supported iPad splitted-keyboard in ver 1.1.0)
iOS7

iOS6

Install via CocoaPods
pod 'YIPopupTextView'
How to use
// NOTE: maxCount = 0 to hide count
YIPopupTextView* popupTextView = [[YIPopupTextView alloc] initWithPlaceHolder:@"input here" maxCount:1000];
popupTextView.delegate = self;
popupTextView.caretShiftGestureEnabled = YES; // default = NO
popupTextView.text = self.textView.text;
//popupTextView.editable = NO; // set editable=NO to show without keyboard
//[popupTextView showInView:self.view];
[popupTextView showInViewController:self]; // recommended, especially for iOS7
//
// NOTE:
// You can add your custom-button after calling -showInView:
// (it's better to add on either superview or superview.superview)
// https://github.com/inamiy/YIPopupTextView/issues/3
//
// [popupTextView.superview addSubview:customButton];
//
YIPopupTextViewButtonStyle
typedef NS_ENUM(NSInteger, YIPopupTextViewButtonStyle) {
YIPopupTextViewButtonStyleNone,
YIPopupTextViewButtonStyleRightCancel, // "x" on the upper-right
YIPopupTextViewButtonStyleRightDone, // "check" on the upper-right
YIPopupTextViewButtonStyleLeftCancelRightDone,
YIPopupTextViewButtonStyleRightCancelAndDone,
YIPopupTextViewButtonStyleLeftDone
};
For caret-shifting, it is better to use YISwipeShiftCaret for all UITextField/UITextViews.
License
YIPopupTextView is available under the Beerware license.
If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.
探索相关项目
加载中…