# PTLAlertView **Repository Path**: 1130354919/PTLAlertView ## Basic Information - **Project Name**: PTLAlertView - **Description**: 一款真正的自定义iOS提示弹框。 - **Primary Language**: Objective-C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2018-02-08 - **Last Updated**: 2021-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PTLAlertView 一款真正的自定义iOS提示弹框。 ### 用法简单 代码如下: ``` PTLAlertView *alertView = [[PTLAlertView alloc]initWithTitle:@"我是标题" message:@"你好你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈吗哈哈你好你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈吗哈哈你好你好吗哈哈你好你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈你好吗哈哈吗哈哈" cancelButtonTitle:@"取消" otherButtonTitles:@"确定",@"等一会", nil]; [alertView setSelctBtnBlock:^(NSInteger index, NSString * _Nullable btnCurrentTitle) { NSLog(@"hha- %zd ---- %@", index, btnCurrentTitle); }]; // 修改属性 // alertView.titleBackgroundColor = [UIColor redColor]; // alertView.titleTextColor = [UIColor greenColor]; // alertView.titleTextFont = [UIFont systemFontOfSize:20]; // alertView.messageTextColor = [UIColor redColor]; // alertView.messageTextFont = [UIFont systemFontOfSize:15]; alertView.cancelBtnTextColor = [UIColor redColor]; // alertView.cancelBtnTextFont = [UIFont systemFontOfSize:20]; // alertView.otherBtnTextColor = [UIColor yellowColor]; // alertView.otherBtnTextFont = [UIFont systemFontOfSize:20]; [alertView show]; ```