links for 2010-05-30

No Comments

Alones Twitter 2010년 5월 30일

No Comments

이 글은 alones님의 2010년 5월 30일의 미투데이 내용입니다.

links for 2010-05-29

No Comments

Alones Twitter 2010년 5월 30일

No Comments

이 글은 alones님의 2010년 5월 30일의 미투데이 내용입니다.

UILabel의 string을 top align 하기 (위로 정렬)

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

Older Entries