UITextViewDelegate详解
2016-02-17 09:46
411 查看
1.//在text view获得焦点之前会调用textViewShouldBeginEditing: 方法。
- (BOOL)textViewShouldBeginEditing:(UITextView *)textView;
2.//当text view失去焦点之前会调用textViewShouldEndEditing
- (BOOL)textViewShouldEndEditing:(UITextView *)textView;
3.//当text view获得焦点之后,并且已经是第一响应者(first responder),那么会调用textViewDidBeginEditing: 方法
- (void)textViewDidBeginEditing:(UITextView *)textView;
4.////结束编辑
- (void)textViewDidEndEditing:(UITextView *)textView;
5.////内容将要发生改变编辑
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range
replacementText:(NSString *)text;
6.////内容发生改变编辑
- (void)textViewDidChange:(UITextView *)textView;
7./////焦点发生改变
- (void)textViewDidChangeSelection:(UITextView *)textView;
8.///指定范围的内容与 URL 将要相互作用时激发该方法——该方法随着
IOS7被使用;
- (BOOL)textView:(UITextView *)textView shouldInteractWithURL:(NSURL *)URL
inRange:(NSRange)characterRange
NS_AVAILABLE_IOS(7_0);
9.
- (BOOL)textViewShouldBeginEditing:(UITextView *)textView;
2.//当text view失去焦点之前会调用textViewShouldEndEditing
- (BOOL)textViewShouldEndEditing:(UITextView *)textView;
3.//当text view获得焦点之后,并且已经是第一响应者(first responder),那么会调用textViewDidBeginEditing: 方法
- (void)textViewDidBeginEditing:(UITextView *)textView;
4.////结束编辑
- (void)textViewDidEndEditing:(UITextView *)textView;
5.////内容将要发生改变编辑
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range
replacementText:(NSString *)text;
6.////内容发生改变编辑
- (void)textViewDidChange:(UITextView *)textView;
7./////焦点发生改变
- (void)textViewDidChangeSelection:(UITextView *)textView;
8.///指定范围的内容与 URL 将要相互作用时激发该方法——该方法随着
IOS7被使用;
- (BOOL)textView:(UITextView *)textView shouldInteractWithURL:(NSURL *)URL
inRange:(NSRange)characterRange
NS_AVAILABLE_IOS(7_0);
9.
- (BOOL)textView:(UITextView *)textView shouldInteractWithTextAttachment:(NSTextAttachment *)textAttachment inRange:(NSRange)characterRange NS_AVAILABLE_IOS(7_0);textView指定范围的内容与文本附件将要相互作用时,自动激发该方法——该方法随着 IOS7被使用;
相关文章推荐
- UIBezierPath加圆角
- poj2299 Ultra-QuickSort 二叉排序树或树状数组
- iOS经典讲解之UIAlertView的使用技巧
- hive入门们学习:orcFile和parquet存储格式简介
- 0014-BlockingQueue的用法
- iOS应用开发中的文字选中操作控件UITextView用法讲解
- iOS 非主线程不能执行UI操作
- easyui tree 树形节点 formatter 渲染不起作用
- UIPickerView去掉背景上的黑线
- Sharpui企业版-简单介绍【01】 【QQ群:206378966】
- [Lintcode]Longest Increasing Continuous Subsequence
- how to build a cgal program in qt under ubuntu
- FiddlerScript学习一:修改Request或Response
- Increasing Triplet Subsequence
- 225. Implement Stack using Queues
- java基础学习总结——GUI编程(二)
- EasyUI学习总结(五)——EasyUI组件使用
- EasyUI学习总结(六)——EasyUI布局
- java基础学习总结——GUI编程(一)
- EasyUI学习总结(四)——parser源码分析