Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevinzhow/NaughtyImageView
UIImageView Can Animate Sprite Image
https://github.com/kevinzhow/NaughtyImageView
Last synced: about 2 months ago
JSON representation
UIImageView Can Animate Sprite Image
- Host: GitHub
- URL: https://github.com/kevinzhow/NaughtyImageView
- Owner: kevinzhow
- Created: 2015-07-13T01:05:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-03T15:21:59.000Z (almost 6 years ago)
- Last Synced: 2024-07-19T01:06:34.126Z (6 months ago)
- Language: Swift
- Size: 489 KB
- Stars: 255
- Watchers: 9
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - NaughtyImageView - UIImageView Can Animate Sprite Image.【 [Preview](https://github.com/kevinzhow/NaughtyImageView/raw/master/Naughty.gif) 】 (OOM-Leaks-Crash / ImageView)
README
# NaughtyImageView
UIImageView Can Animate Sprite Image Like Twitter Fav action![NaughtyImageView](Naughty.gif)
## Requirements
Swift 1.2, iOS 8.0
## Example
```swift
starImageView.frame = CGRectMake(view.frame.width/2.0 - 32/2.0, 100, 32, 32)starImageView.setupWithImage(UIImage(named: "fav")!, horizontalImages: 8, verticalImages: 12)
starImageView.startNaughtyAnimation()
```## Installation
Feel free to drag `NaughtyImageView.swift` to your iOS Project. But it's recommended to use CocoaPods or Carthage.
### CocoaPods
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects.
CocoaPods 0.36 adds supports for Swift and embedded frameworks. You can install it with the following command:
```bash
$ [sudo] gem install cocoapods
```To integrate NaughtyImageView into your Xcode project using CocoaPods, specify it in your `Podfile`:
```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!pod 'NaughtyImageView'
```Then, run the following command:
```bash
$ pod install
```You should open the `{Project}.xcworkspace` instead of the `{Project}.xcodeproj` after you installed anything from CocoaPods.
For more information about how to use CocoaPods, I suggest [this tutorial](http://www.raywenderlich.com/64546/introduction-to-cocoapods-2).
## License
NaughtyImageView is available under the MIT license. See the LICENSE file for more info.