Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/acoomans/iOS-MagnifyingGlass
A magnifying glass for iOS
https://github.com/acoomans/iOS-MagnifyingGlass
Last synced: 2 months 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 (about 13 years ago)
- Default Branch: master
- Last Pushed: 2019-03-07T07:04:37.000Z (almost 6 years ago)
- Last Synced: 2024-10-31T15:52:47.324Z (2 months ago)
- Language: Objective-C
- Homepage:
- Size: 626 KB
- Stars: 314
- Watchers: 25
- 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.
[![Build Status](https://api.travis-ci.org/acoomans/iOS-MagnifyingGlass.png)](https://api.travis-ci.org/acoomans/iOS-MagnifyingGlass.png)
[![Cocoapods](https://cocoapod-badges.herokuapp.com/v/iOS-MagnifyingGlass/badge.png)](http://beta.cocoapods.org/?q=on%3Aios%20name%3AiOS-MagnifyingGlass%2A)
[![Cocoapods](https://cocoapod-badges.herokuapp.com/p/iOS-MagnifyingGlass/badge.png)](http://beta.cocoapods.org/?q=on%3Aios%20name%3AiOS-MagnifyingGlass%2A)![screenshots](https://github.com/acoomans/iOS-MagnifyingGlass/raw/master/MagnifyingGlassDemo/screenshot.png)
## 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