Skip to content

Instantly share code, notes, and snippets.

@mogeta

mogeta/getWidth

Created Mar 22, 2012
Embed
What would you like to do?
get width in iOS
NSInteger width = [[UIScreen mainScreen] applicationFrame].size.width;
@mogeta

This comment has been minimized.

Copy link
Owner Author

@mogeta mogeta commented Mar 22, 2012

iOSで画面サイズを取る際のワンライナー

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment