Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashfurrow/uiview-shinkto
Shrinks any UIView instance to a point in a view similar to the iOS Mail app
https://github.com/ashfurrow/uiview-shinkto
Last synced: 2 months ago
JSON representation
Shrinks any UIView instance to a point in a view similar to the iOS Mail app
- Host: GitHub
- URL: https://github.com/ashfurrow/uiview-shinkto
- Owner: ashfurrow
- License: mit
- Created: 2011-05-22T01:27:20.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-02-19T15:42:56.000Z (almost 13 years ago)
- Last Synced: 2024-05-09T20:02:06.920Z (8 months ago)
- Language: Objective-C
- Homepage:
- Size: 412 KB
- Stars: 11
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## What it is
This repo contains a UIView category called ShrinkTo which will let you easily shrink any view to a point within another view, much like the iOS Mail app.
[Here's a demo video.] (http://www.youtube.com/watch?v=Xak3xqGKvqc)
## How to Use
Make sure to link against the QuartzCore framework in your build settings or you'll get linker errors when you try to compile.
Call `shrinkToCenterOfView:` or `shrinkToPoint:inView:` on any UIView instance. The latter method takes a point in the second parameter's view coordinate system that specifies where the shrinking view should shrink to.
Thanks to [Mike Nachbaur](http://nachbaur.com) for guides on Core Animation.