Latest 1.0.4
Homepage https://github.com/piuSora/YFPopView
License MIT
Platforms ios 8.0, requires ARC
Authors

YFPopView for iOS (Objective-C)

自定义view边缘弹出、淡入淡出、缩放动画

img

集成

Pod


pod 'YFPopView', '~> 1.0.3'
添加到podfile中并执行pod install

手动集成

将下载的Demo中YFPopView文件夹拖到项目中

使用

1 新建自定义view(xib/code都可以)继承自YFPopView
2 在需要弹窗的地方执行以下代码

    // code
    PopCustomView *yourView = [[PopCustomView alloc] init];
    // xib
    PopCustomView *yourView = [[PopCustomView instanceViewWithNibName:@"YourNibName"] init];
    //set your subview as YFPopView's animated view
    yourView.animatedView = yourView.subview;
    [yourView showPopViewOn:keyWindow];

详细使用方法参见Demo

Latest podspec

{
    "name": "YFPopView",
    "version": "1.0.4",
    "summary": "An Easy To Use Pop-up View Compoenment",
    "description": "An Easy To Use Pop-up View Compoenmentn1.Multiple animation supportn2.Support both Xib and Code",
    "homepage": "https://github.com/piuSora/YFPopView",
    "license": "MIT",
    "authors": {
        "ZYF": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/piuSora/YFPopView.git",
        "tag": "1.0.4"
    },
    "source_files": "YFDemo/YFDemo/YFPopView/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This