Created
September 13, 2011 18:48
-
-
Save cbess/1214667 to your computer and use it in GitHub Desktop.
iOS UIView.frame.origin = rect macro
This file contains 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
// Expands to set self.frame.origin | |
#define UIViewOrigin(X, Y) ({ \ | |
CGRect frame = self.frame; \ | |
frame.origin = CGPointMake(X, Y); \ | |
self.frame = frame; }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment