Created
August 13, 2013 18:29
-
-
Save wess/6224138 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIView *view = [[UIView alloc] initWithFrame:({ | |
//do some calculations if needed to create your frame. | |
CGRect frame = CGRectZero; | |
frame.origin.x = 123.0f; | |
frame.origin.y = 12.0f; | |
frame.size.width = 100.0f; | |
frame.size.height = 100.0f; | |
frame; | |
})]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment