【发布时间】:2013-09-04 11:08:08
【问题描述】:
我有一个UITextView,它位于UITableViewCell 内。要选择UITextView 中的内容,我将使用以下代码。
[UITextView select:self];
[UITextView setSelectedRange:NSMakeRange(start,length)];
一旦UITableView 被加载,下面的方法就会被调用
numberOfRowsInSection:(NSInteger)sectioncellForRowAtIndexPath:(NSIndexPath *)indexPathheightForRowAtIndexPath:(NSIndexPath *)indexPath
我的问题是,我应该把这段代码放在哪里才能让UITextView 得到关注。
感谢您的回答。
【问题讨论】:
-
调用 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 通过传递 indexPath...然后在这个方法中做你的事情。
标签: ios uitableview uitextview