int nMaxWidth = 220

int nMaxHeight = 400;   

UIFont *chatFont = [UIFont systemFontOfSize:14];

_tagDetail.text = @"";

CGSize chatTextSize = [_tagDetail.text sizeWithFont:  chatFont

  constrainedToSize: CGSizeMake(nMaxWidth, nMaxHeight)

  lineBreakMode: UILineBreakModeWordWrap];

int height = chatTextSize.height;

'Object-C' 카테고리의 다른 글

category  (0) 2010.12.03
init  (0) 2010.12.03
textbox 글자수에 따른 height 가져오기  (0) 2010.11.26
HIG  (0) 2010.11.07
Memory Management  (0) 2010.11.02
StanFord Lecture PDF  (0) 2010.10.29

+ Recent posts