UITableview
의 모든 셀에 UITextView
이 있습니다. 텍스트보기의 높이가 동적으로 증가하고 있습니다. 텍스트보기 크기가 커짐에 따라 해당 셀의 높이를 늘리고 싶습니다. 나는 특정 셀의 HIGHT를 늘려야 // 여기UITextView에서 텍스트를 입력 할 때 동적으로 UITableViewcell 확장
-(BOOL)textView:(UITextView *)textView1 shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text
{
NSLog(@"textTag%d",textView1.tag);
NSString *stringToSave = [textView1.text stringByReplacingCharactersInRange:range withString:text];
NSLog(@"Save me: %@", stringToSave);
CGFrame*frame =textView1.frame;
frame.size.height = textView1.contentSize.height;
textView1.frame = frame;
로 쓰고 있어요.
if([text isEqualToString:@"\n"])
{
[textView1 resignFirstResponder];
}
return YES;
}
- (CGFloat)있는 tableView : (jQuery과 *)있는 tableView heightForRowAtIndexPath : (NSIndexPath *) indexPath – Jitendra