直接上代码
CGFloat height=0;
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
height =ceilf([myTextViewsizeThatFits:myTextView.frame.size].height);
}else{
height =myTextView.contentSize.height;
}
直接上代码
CGFloat height=0;
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
height =ceilf([myTextViewsizeThatFits:myTextView.frame.size].height);
}else{
height =myTextView.contentSize.height;
}
本文标题:关于UITextView contentSize.height
本文链接:https://www.haomeiwen.com/subject/prdjuftx.html
网友评论