프로젝트
GitHub에서 보기
inamiy/YIPopupTextView
소개
facebook's post-like input text view for iOS (Beerware license)
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalYIPopupTextView
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.
관련 프로젝트 살펴보기
불러오는 중…