Showing posts with label iOS programming. Show all posts
Showing posts with label iOS programming. Show all posts

Sunday, April 15, 2012

옛 기기와의 호환을 위한 텍스처 해상도

CAUTION: Unless you develop your game exclusively for iPhone 3GS, iPad, or iPhone 4 and
future devices, you should not use a canvas width or height of 2048. Older devices only support
texture dimensions up to a maximum of 1024×1024 pixels.
출처 : Learn iPhone and iPad Cocos2D Game Development 132 페이지
키워드 : resolution, texture atlas

Saturday, April 14, 2012

NSString의 실제 픽셀 사이즈 알아내는 법

주어진 NSString을 특정 font로 일정 영역 안에 그려주는 멤버 함수로는 drawInRect:withFont: 등이 유용
출처 : NSString UIKit Additions Reference
질문과 답 링크 : Font size in pixels
키워드 : 포인트, point, pt, string