Skip to content

Instantly share code, notes, and snippets.

@pier-oliviert
Created August 13, 2011 13:13
Show Gist options
  • Select an option

  • Save pier-oliviert/1143839 to your computer and use it in GitHub Desktop.

Select an option

Save pier-oliviert/1143839 to your computer and use it in GitHub Desktop.
if (self.rightItem == item) {
item.layer.anchorPoint = CGPointMake(1, 0.5);
} else {
item.layer.anchorPoint = CGPointMake(0, 0.5);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment