Skip to content

resize cgpoints and cgrects to fit on iphone/ipad dynamically, based on what device is being run

Notifications You must be signed in to change notification settings

quantumpotato/ipad-resizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Instead of CGPointMake(x,y) and CGRectMake(x,y,width,height), use
ipmakepoint(x,y) 								//iPad make point
ipmakerect(x,y,width,height)  	//iPad make rect

To resize the point or frame to fit an iPhone or iPad screen.

Make sure not to call this on an already resized value, eg ipmmakerect on a view's frame then resizing that view's frame with ipmakerect(view.frame.origin.x..)

About

resize cgpoints and cgrects to fit on iphone/ipad dynamically, based on what device is being run

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published