https://github.com/acoomans/iOS-MagnifyingGlass
A magnifying glass for iOS
https://github.com/acoomans/iOS-MagnifyingGlass
Last synced: 10 days ago
JSON representation
A magnifying glass for iOS
- Host: GitHub
- URL: https://github.com/acoomans/iOS-MagnifyingGlass
- Owner: acoomans
- License: bsd-2-clause
- Created: 2011-12-30T22:46:45.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2019-03-07T07:04:37.000Z (about 6 years ago)
- Last Synced: 2025-04-02T10:38:04.333Z (13 days ago)
- Language: Objective-C
- Homepage:
- Size: 626 KB
- Stars: 314
- Watchers: 24
- Forks: 60
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - iOS-MagnifyingGlass - A magnifying glass for iOS (etc)
- awesome - iOS-MagnifyingGlass - A magnifying glass for iOS (etc)
README
# MagnifyingGlass
ACMagnifyingGlass is a magnifier like the one you can find in the _notes_ iOS app when moving the cursor.
[](https://api.travis-ci.org/acoomans/iOS-MagnifyingGlass.png)
[](http://beta.cocoapods.org/?q=on%3Aios%20name%3AiOS-MagnifyingGlass%2A)
[](http://beta.cocoapods.org/?q=on%3Aios%20name%3AiOS-MagnifyingGlass%2A)
## Install
Just copy the files under the _MagnifyingGlass_ directory into your project, including the .h, .m and .png files.
## Install with CocoaPods
You can either clone this repository or use [CocoaPods](http://cocoapods.org) to add MagnifyingGlass to your project.
Add a pod entry to your Podfile:
pod 'iOS-MagnifyingGlass', '~> 0.0.2'
Install the pod(s) by running:
pod install
# UsageSimply create a _ACMagnifyingView_ view (with alloc/initWithFrame or from nib) and a magnifier will show up when you tap the screen, magnifying the view and its subviews.
It is possible to use a custom magnifier, like this:
ACMagnifyingGlass *mag = [[ACMagnifyingGlass alloc] initWithFrame:CGRectMake(0, 0, 120, 120)];
mag.scale = 2;
self.magnifyingView.magnifyingGlass = mag;
If you want a loupe like the real one:ACLoupe *loupe = [[ACLoupe alloc] init];
self.magnifyingView.magnifyingGlass = loupe;## Thanks
This magnifier is inspired by the one from [Chadwick Wood](http://coffeeshopped.com/2010/03/a-simpler-magnifying-glass-loupe-view-for-the-iphone)
The loupe image was extracted thanks to [0xced](https://github.com/0xced/UIKit-Artwork-Extractor)
iOS7 loupe contribution by benhirashima