P梳pomAlert观 0.1.1

P梳pomAlert观 0.1.1

测试测试
语言语言 Obj-CObjective C
许可证 MIT
发布上次发布2015年10月

KNP 维护。



  • 作者
  • pradeep

使用方法

要运行示例项目,首先从仓库中克隆,然后从 Example 目录中运行 pod install

要求

安装

POMAP CustomAlert VIEW 通过 CocoaPods 提供。要安装它,只需在 Podfile 中添加以下行

pod "PKCustomAlertView"

定制警报样例代码

    PKAlertModel *alertModel = [[PKAlertModel alloc] init];
    alertModel.alertTitle = @"Title";
    alertModel.alertMessageBody = @"Displaying custom alert!";
    alertModel.kAlertMarginOffSet = 20.0f;
    alertModel.buttonsArray = [NSMutableArray arrayWithObjects:@"Cancel", @"OK", nil];
    //    alertModel.alertType = kPKSuggestion;
    [[PKAlertViewController sharedInstance] displayAlertViewOnView:self.view withModel:alertModel andCallBack:^(id sender) {
        ;
    }];

定制表格警报样例代码

    PKAlertModel *alertModel = [[PKAlertModel alloc] init];
    alertModel.alertTableEntries = [NSMutableArray arrayWithObjects:@"iOS",@"Android", @"Blackberry", @"Windows", nil];
    alertModel.alertTableImages = [NSMutableArray arrayWithObjects:[UIImage imageNamed:@"ios"], [UIImage imageNamed:@"android"],     [UIImage imageNamed:@"blackberry"],[UIImage imageNamed:@"windows"], nil];
    alertModel.shouldDisplayPreviousSelectedIndex = YES;
    alertModel.kAlertPreviousSelectedIndex = 0;
    alertModel.alertCellAccesoryImage = [UIImage imageNamed:@"tick"];
    [[PKAlertViewController sharedInstance] showAlertTableViewOn:self.view withModel:alertModel onCompletion:^(id sender) {
        ;
    }];

alt tag alt tag alt tag alt tag

作者

pradeep,[email protected]

许可证

P梳pomAlert观 在 MIT 许可下提供。有关更多信息,请参阅 LICENSE 文件。