ios - Fixed Width in Inches on iPad -
i need view 2" wide on ipad regardless of orientation or ipad device running on. how can calculate width view deliver 2" in width?
you're going have convert points pixels inches. points pixels easy , possible through api:
pixels = [[uiscreen mainscreen] scale] * points
converting inches bit different. have @ reply question dpi (dots per inch):
http://stackoverflow.com/a/13178204/2708650
ios uiview
No comments:
Post a Comment