Latest 0.2.6
Homepage https://github.com/kevinzhow/NaughtyImageView
License MIT
Platforms ios 8.0, requires ARC
Authors

UIImageView Can Animate Sprite Image Like Twitter Fav action

NaughtyImageView

Requirements

Swift 1.2, iOS 8.0

Example

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 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:

$ [sudo] gem install cocoapods

To integrate NaughtyImageView into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'NaughtyImageView'

Then, run the following command:

$ 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.

License

NaughtyImageView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "NaughtyImageView",
    "version": "0.2.6",
    "summary": "UIImageView Can Animate Sprite Image",
    "description": "UIImageView Can Animate Sprite Image with Progress control.",
    "homepage": "https://github.com/kevinzhow/NaughtyImageView",
    "screenshots": "https://raw.githubusercontent.com/onevcat/Kingfisher/master/images/logo.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "kevinzhow": "[email protected]"
    },
    "social_media_url": "http://twitter.com/kevinzhow",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/kevinzhow/NaughtyImageView.git",
        "tag": "0.2.6"
    },
    "source_files": "NaughtyImageView/Source/*.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This