Latest 1.0.2
Homepage https://github.com/kuah/ACFlip
License MIT
Platforms ios 8.0, requires ARC

简单实用的翻转效果

Version
Platform

QQ20181015-183200

Install

Cocoapod

pod 'ACFlip'

Usage

#import "ACFlip.h"

self.flipAnim = [ACFlip flip:<#view#> and:<#view#>];//对两个view生成出关联实体ACFlip

[self.flipAnim flip];//执行翻转

Api

/**flip duration*/
@property (nonatomic,assign)CGFloat duration;
/**是否被翻转*/
@property (nonatomic,assign,readonly)BOOL isReversed;
/**是否在动画中*/
@property (nonatomic,assign,readonly)BOOL isAnimating;
/**代理*/
@property (nonatomic, weak, nullable) id <ACFlipDelegate> delegate;
@protocol ACFlipDelegate<NSObject>
@optional
 /**
 *  @brief 执行翻转动画
 *  @param flipItem 翻转关联实体
 *  @param isReversedFlip 是否从正面翻转到背面
 */
-(void)flipDidFinished:(ACFlip *)flipItem isReversedFlip:(BOOL)isReversedFlip;
@end

Latest podspec

{
    "name": "ACFlip",
    "version": "1.0.2",
    "summary": "u7b80u5355u5b9eu7528u7684u7ffbu8f6cu63a7u4ef6",
    "homepage": "https://github.com/kuah/ACFlip",
    "authors": "Kuah => [email protected]",
    "source": {
        "git": "https://github.com/kuah/ACFlip.git",
        "tag": "1.0.2"
    },
    "source_files": "source/*.{h,m}",
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    },
    "license": "MIT"
}

Pin It on Pinterest

Share This