Skip to content

Instantly share code, notes, and snippets.

View no-itsbackpack's full-sized avatar
🙊

Gomez no-itsbackpack

🙊
View GitHub Profile
module UIViewAdditions
def offsetPointToParentCoordinates(aPoint)
CGPointMake(aPoint.x + center.x, aPoint.y + center.y)
end
def pointInViewCenterTerms(aPoint)
CGPointMake(aPoint.x - center.x, aPoint.y - center.y)
end
def pointInTransformedView(aPoint)