Skip to content

Instantly share code, notes, and snippets.

@harichinthalapale
Created July 17, 2012 13:45
Show Gist options
  • Save harichinthalapale/3129471 to your computer and use it in GitHub Desktop.
Save harichinthalapale/3129471 to your computer and use it in GitHub Desktop.
Right align view
CGRect _f = CGRectMake(0, 0, 200, 200);
CGFloat xPosition = CGRectGetWidth(self.view.frame) - CGRectGetWidth(_f);
_f.origin = CGPointMake(ceil(xPosition), 0.0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment