Latest 0.0.1
Homepage https://github.com/SilenceWater/SAPopupAlert
License MIT
Platforms ios 8.0, requires ARC
Authors

SAAlert

对弹出框进行的封装

用法:
比如说我们随便创建一个View 然后把他弹出来,那么就可以这样写,这种弹出方式只是其中一种,具体的方式可以自己根据SAPopupManager定制。

UIView *view = [UIView new];
view.bounds = CGRectMake(0, 0, 100, 100);
view.backgroundColor = [UIColor redColor];
这里必须要用self.sa_popupManager这个全局属性来赋值(在Manager里边我写了个类别,可以直接调用)
self.sa_popupManager = [SAPopupManager new];
self.sa_popupManager.transitStyle = SAPopupTransitStyleFromTop;
self.sa_popupManager.dismissOnMaskTouched = YES;
self.sa_popupManager.dismissOppositeDirection = YES;
[self.sa_popupManager presentContentView:view duration:0.75 elasticAnimated:YES];

Latest podspec

{
    "name": "SAPopupAlert",
    "version": "0.0.1",
    "summary": "u9017u6bd4u5f0fu5c01u88c5uff0cu5bf9u5de5u7a0bu4e2du4e00u4e9bu5e38u7528u5f39u51fau7cfbu5217u7684u5c01u88c5",
    "license": "MIT",
    "authors": {
        "u6e05u98ceu9010u5c18": "[email protected]"
    },
    "homepage": "https://github.com/SilenceWater/SAPopupAlert",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/SilenceWater/SAPopupAlert.git",
        "tag": "0.0.1",
        "submodules": true
    },
    "requires_arc": true,
    "source_files": "SAPopupAlert/*.{h,m}"
}

Pin It on Pinterest

Share This