Skip to content

Instantly share code, notes, and snippets.

@brutella
Created April 26, 2013 08:42
Show Gist options
  • Save brutella/5465798 to your computer and use it in GitHub Desktop.
Save brutella/5465798 to your computer and use it in GitHub Desktop.
How to make ChatHeads to stay always in the screen center.
// Change the method _destinationPointForReleasePoint with this
- (CGPoint)_destinationPointForReleasePoint:(CGPoint)releasePoint
{
return CGPointMake(CGRectGetMidX(_window.bounds), CGRectGetMidY(_window.bounds));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment