获取 UITextView 的光标位置
来源:互联网 发布:mac 显示器校准 编辑:程序博客网 时间:2024/05/01 04:06
- (void)textViewDidBeginEditing:(UITextView *)textView { [self performSelector:@selector(textViewDidChange:) withObject:textView afterDelay:0.1f];}- (void)textViewDidChange:(UITextView *)textView { [self.tableView beginUpdates]; [self.tableView endUpdates]; CGFloat cursorPosition; if (textView.selectedTextRange) { cursorPosition = [textView caretRectForPosition:textView.selectedTextRange.start].origin.y; } else { cursorPosition = 0; } CGRect cursorRowFrame = CGRectMake(0, cursorPosition, kScreenWidth, kMinTextViewHeight); CGRect textViewFrame = [self.tableView convertRect:cursorRowFrame fromView:textView]; [self.tableView scrollRectToVisible:textViewFrame animated:YES];}
0 0
- 获取 UITextView 的光标位置
- UITextView获取光标位置
- UITextView光标位置的设置
- 确定UITextView中起始光标的位置
- UITextView光标位置在中间的问题
- UITextView光标位置
- iOS UITextView 光标位置
- 获取光标的位置
- 设置UITextView,UITextField光标位置
- 获取 Textarea 的光标位置
- 获取 Textarea 的光标位置
- 获取 Textarea 的光标位置
- 获取EditText的光标位置
- H5获取光标的位置
- JavaScript获取光标的位置
- IOS UITextView光标位置在中间的问题
- IOS UITextView 光标的位置,大小,宽度,高度设置问题
- iOS获得UITextView当前光标所在的位置.
- android细字体
- 运行Android程序时DDMS报错:Failed to initialize Monitor Thread: Unable to establish loopback connection。
- 机器之心对俞栋的采访
- stm32寄存器版学习笔记01 GPIO口的配置(LED、按键)
- 大数据性能调优之HBase的RowKey设计
- 获取 UITextView 的光标位置
- SharePrefrence基本用法
- 亿级Web系统搭建——单机到分布式集群
- svn:总使用最新数据忽略个人修改
- 设计模式的概念
- 【NOIP 2008 提高组 T3】传纸条(DP)
- 常用类
- SDL视频显示进阶
- 2016/11/2