Skip to content

Instantly share code, notes, and snippets.

@wess
Created August 13, 2013 18:29
Show Gist options
  • Save wess/6224138 to your computer and use it in GitHub Desktop.
Save wess/6224138 to your computer and use it in GitHub Desktop.
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