links for 2010-05-30
May 31
iPhone Developer
May 31
이 글은 alones님의 2010년 5월 30일의 미투데이 내용입니다.
May 30
이 글은 alones님의 2010년 5월 30일의 미투데이 내용입니다.
May 30
iphone apple, dev, iphone, ui, uilabel, 애플 3 Comments
UILable은 string의 위, 중간, 아래 정렬이 없는데 아래와 같이 하면 top으로 정렬을
UILabel *l2; // l2 is the label that we are working
// find the new height
CGRect l2Rect = [l2 textRectForBounds:l2.bounds limitedToNumberOfLines:999];
// reset the height
CGRect f = l2.frame;
f.size.height = l2Rect.size.height;
l2.frame = f;
Ref: UILabel align to top