Development/iOS
#iOS NSString drawInRect: Text Color 세팅하기.
taehoon.Koo
2011. 9. 18. 13:03
NSString *myDescription = @"String";
[[UIColor colorWithRed:119/255.f green:119/255.f blue:119/255.f alpha:1.f] set];
[myDescription drawInRect:CGRectMake(10, 200, 85, 15)
withFont:[UIFont systemFontOfSize:12.f]
lineBreakMode:UILineBreakModeClip
alignment:UITextAlignmentCenter];
drawInRect:를 호출하기전에
[[UIColor blackColor] set];
이런식으로 호출해주시면 됩니다 ㅎㅎ