Skip to content
项目

关于

UIImageView Can Animate Sprite Image

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

NaughtyImageView

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.

探索相关项目

加载中…