Created
April 26, 2013 08:42
-
-
Save brutella/5465798 to your computer and use it in GitHub Desktop.
How to make ChatHeads to stay always in the screen center.
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
// 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