日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

MaxAlertView 强大的弹框试图

發(fā)布時(shí)間:2025/3/21 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 MaxAlertView 强大的弹框试图 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

【鏈接】https://github.com/MrJalen/MaxAlertView

MaxAlertView

if (indexPath.section == 0) {[MaxAlertView showAlertWithTitle:@"AlertView show Title"];}else if (indexPath.section == 1) {[MaxAlertView showAlertWithTitle:@"Title" message:@"AlertView show Title with message"];}else if (indexPath.section == 2) {[MaxAlertView showAlertWithTitle:@"Title" message:@"AlertView show Title with message" cancelTitle:@"cancel" completion:^(BOOL cancelled) {NSLog(@"cancel");}];}else if (indexPath.section == 3) {[MaxAlertView showAlertWithTitle:@"Title" message:@"AlertView show Title with message" cancelTitle:@"cancel" otherTitle:@"confirm" completion:^(BOOL cancelled) {if (cancelled) {NSLog(@"cancel");}else {NSLog(@"confirm");}}];}else if (indexPath.section == 4) {[MaxAlertView showAlertWithTitle:@"Title" message:@"AlertView show Title with message" cancelTitle:@"cancel" otherTitle:@"confirm" contentView:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"wode_ydy"]] completion:^(BOOL cancelled) {if (cancelled) {NSLog(@"cancel");}else {NSLog(@"confirm");}}];}else if (indexPath.section == 5) {[MaxAlertView showAlertWithTitle:@"Title" message:@"AlertView show Title with message" completion:^(BOOL cancelled) {if (cancelled) {NSLog(@"ok");}}];}

AlertPopUpView

if (indexPath.section == 0) {PopUpView *popUpView = [[PopUpView alloc] initWithTitle:@"Title" message:@"AlertPopUpView show Title with message"];[popUpView addBtnWithTitle:@"cancel" type:JLPopUpBtnStyleCancel handler:^{NSLog(@"cancel");}];[popUpView addBtnWithTitle:@"confirm" type:JLPopUpBtnStyleDefault handler:^{NSLog(@"confirm");}];[popUpView showInView:self.view preferredStyle:JLPopUpViewStyleAlert];}else if (indexPath.section == 1) {PopUpView *popUpView = [[PopUpView alloc] initWithTitle:@"Title" message:@"AlertPopUpView show Title with More button action style" cancelButtonTitle:@"cancel" otherButtonTitles:@[@"one style", @"two style", @"confirm"] actionWithIndex:^(NSInteger index) {if (index == 0) {NSLog(@"cancel");}else if (index == 1) {NSLog(@"one style");}else if (index == 2) {NSLog(@"two style");}else {NSLog(@"confirm");}}];[popUpView addBtnWithTitle:@"separate add style" type:JLPopUpBtnStyleDestructive handler:^{NSLog(@"separate add style");}];[popUpView showInView:self.view preferredStyle:JLPopUpViewStyleAlert];}else if (indexPath.section == 2) {PopUpView *popUpView = [[PopUpView alloc] initWithTitleConfiguration:^(TitleConfiguration *configuration) {configuration.text = @"Title";configuration.textColor = [UIColor redColor];} messageConfiguration:^(MessageConfiguration *configuration) {configuration.text = @"The ways to create the title and the message of the text, font size, font color, text on the bottom margin customizing, adapted to your requirements at any time";configuration.fontSize = 15.0;configuration.textColor = [UIColor purpleColor];configuration.bottom = 25.0;}];[popUpView addBtnWithTitle:@"cancel" type:JLPopUpBtnStyleCancel handler:^{NSLog(@"cancel");}];[popUpView addBtnWithTitle:@"I know" type:JLPopUpBtnStyleDestructive handler:^{NSLog(@"I know");}];[popUpView addBtnWithTitle:@"confirm" type:JLPopUpBtnStyleDefault handler:^{NSLog(@"confirm");}];[popUpView showInView:self.view preferredStyle:JLPopUpViewStyleAlert];}else {PopUpView *popUpView = [[PopUpView alloc] initWithTitle:@"Title" message:@"Log in or Sing in"];__weak typeof(PopUpView) *weakPopUpView = popUpView;[popUpView addTextFieldWithPlaceholder:@"account/phone number/email" text:nil secureEntry:NO];[popUpView addTextFieldWithPlaceholder:@"password" text:nil secureEntry:YES];[popUpView addTextFieldWithPlaceholder:@"password again" text:nil secureEntry:YES];[popUpView addBtnWithTitle:@"cancel" type:JLPopUpBtnStyleCancel handler:^{NSLog(@"cancel");}];[popUpView addBtnWithTitle:@"confirm" type:JLPopUpBtnStyleDefault handler:^{NSLog(@"confirm");for (int i = 0; i < weakPopUpView.textFieldArray.count; i ++) {UITextField *tf = weakPopUpView.textFieldArray[i];NSLog(@"第%d個(gè)輸入框的文字是:%@", i, tf.text);}}];[popUpView showInView:self.view preferredStyle:JLPopUpViewStyleAlert];}

ActionSheetPopUpView

if (indexPath.section == 0) {PopUpView *popUpView = [[PopUpView alloc] initWithTitle:@"Title" message:@"AlertPopUpView show Title with message"];[popUpView addBtnWithTitle:@"cancel" type:JLPopUpBtnStyleCancel handler:^{NSLog(@"cancel");}];[popUpView addBtnWithTitle:@"confirm" type:JLPopUpBtnStyleDefault handler:^{NSLog(@"confirm");}];[popUpView showInView:self.view preferredStyle:JLPopUpViewStyleActionSheet];}else if (indexPath.section == 1) {PopUpView *popUpView = [[PopUpView alloc] initWithTitle:@"Title" message:@"AlertPopUpView show Title with More button action style" cancelButtonTitle:@"cancel" otherButtonTitles:@[@"one style", @"two style", @"confirm"] actionWithIndex:^(NSInteger index) {if (index == 0) {NSLog(@"cancel");}else if (index == 1) {NSLog(@"one style");}else if (index == 2) {NSLog(@"two style");}else {NSLog(@"confirm");}}];[popUpView addBtnWithTitle:@"separate add style" type:JLPopUpBtnStyleDestructive handler:^{NSLog(@"separate add style");}];[popUpView showInView:self.view preferredStyle:JLPopUpViewStyleActionSheet];}else if (indexPath.section == 2) {PopUpView *popUpView = [[PopUpView alloc] initWithTitleConfiguration:^(TitleConfiguration *configuration) {configuration.text = @"Title";configuration.textColor = [UIColor redColor];} messageConfiguration:^(MessageConfiguration *configuration) {configuration.text = @"The ways to create the title and the message of the text, font size, font color, text on the bottom margin customizing, adapted to your requirements at any time";configuration.fontSize = 15.0;configuration.textColor = [UIColor purpleColor];configuration.bottom = 25.0;}];[popUpView addBtnWithTitle:@"cancel" type:JLPopUpBtnStyleCancel handler:^{NSLog(@"cancel");}];[popUpView addBtnWithTitle:@"I know" type:JLPopUpBtnStyleDestructive handler:^{NSLog(@"I know");}];[popUpView addBtnWithTitle:@"confirm" type:JLPopUpBtnStyleDefault handler:^{NSLog(@"confirm");}];[popUpView showInView:self.view preferredStyle:JLPopUpViewStyleActionSheet];}else {PopUpView *popUpView = [[PopUpView alloc] initWithTitle:@"Title" message:@"Log in or Sing in"];__weak typeof(PopUpView) *weakPopUpView = popUpView;[popUpView addTextFieldWithPlaceholder:@"account/phone number/email" text:nil secureEntry:NO];[popUpView addTextFieldWithPlaceholder:@"password" text:nil secureEntry:YES];[popUpView addTextFieldWithPlaceholder:@"password again" text:nil secureEntry:YES];[popUpView addBtnWithTitle:@"cancel" type:JLPopUpBtnStyleCancel handler:^{NSLog(@"cancel");}];[popUpView addBtnWithTitle:@"confirm" type:JLPopUpBtnStyleDefault handler:^{NSLog(@"confirm");for (int i = 0; i < weakPopUpView.textFieldArray.count; i ++) {UITextField *tf = weakPopUpView.textFieldArray[i];NSLog(@"第%d個(gè)輸入框的文字是:%@", i, tf.text);}}];[popUpView showInView:self.view preferredStyle:JLPopUpViewStyleActionSheet];}

?

效果圖

??

?


版權(quán)聲明:本文為博主原創(chuàng)文章,未經(jīng)博主允許不得轉(zhuǎn)載。

轉(zhuǎn)載于:https://www.cnblogs.com/MrJalen/p/6813475.html

總結(jié)

以上是生活随笔為你收集整理的MaxAlertView 强大的弹框试图的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 大学生一级片 | 乌克兰毛片 | 色综合久久综合 | 无套内谢的新婚少妇国语播放 | 国产欧美一区二区三区在线看蜜臀 | 中文字幕人妻色偷偷久久 | 国产又黄又湿 | 成人av免费 | xxx69美国 | 日韩精品麻豆 | 国产嫩草av| 日本精品网| 成人三级视频 | 91在线视频精品 | 九热精品| 国产一级片在线播放 | 久草国产精品 | 综合精品视频 | 亚洲午夜精品福利 | 国产女人爽到高潮a毛片 | 蝌蚪网在线视频 | 欧美婷婷精品激情 | 久久久69 | 日本黄色网络 | 免费无遮挡无码永久在线观看视频 | 亚洲人妻一区二区三区 | 99热在线观看精品 | 日韩大片免费在线观看 | 国产五月婷婷 | 中文字幕福利视频 | 污版视频在线观看 | 奇米色777| 特黄视频 | 国产a级片免费看 | 日韩图片一区 | 日韩在线观看网站 | 色宗合 | 成年人性视频 | 亚洲av无码国产精品麻豆天美 | 中文字幕第315页 | 国产成人啪精品午夜在线观看 | 亚洲情人网 | 男同精品| 日日鲁鲁鲁夜夜爽爽狠狠视频97 | 亚洲AV无码国产精品播放在线 | 欧美变态另类刺激 | 91高清无打码 | 一区三区视频 | 97se在线| 销魂美女一区二区 | 日韩国产精品视频 | 国产第一毛片 | 天天色影| 成人高潮片免费视频 | 色哟哟视频网站 | 天天躁日日躁狠狠躁免费麻豆 | 国产网站免费看 | 亚洲精品www久久久久久广东 | 日韩黄色短片 | 欧美成人一区二区三区四区 | 欧美视频在线观看一区 | 日本中文字幕视频在线 | 成人国产免费视频 | 无码人妻精品一区二区三区在线 | 国产精品爱啪在线线免费观看 | 亚洲情se | 91麻豆精品秘密入口 | 亚洲精品国产精品国自产观看 | 最新av免费在线观看 | 欧美 日韩 国产 一区 | 午夜亚洲福利 | 牛牛电影国产一区二区 | 人妻巨大乳一二三区 | 国产高清视频在线免费观看 | 国产永久免费 | 操女人的逼逼 | 精品一区二区免费视频 | av毛片大全| 精品国产乱子伦一区二区 | 无码精品黑人一区二区三区 | 美女啪啪网站 | 国产成人精品一区二区 | 国产乱淫片视频 | 久久久久久久成人 | 免费不卡毛片 | 91福利在线视频 | 国产野外作爱视频播放 | 国产成人无码精品久久二区三 | 日韩精品成人免费观看视频 | 精品久久久无码中文字幕 | 亚洲一区二区播放 | 蜜芽久久| 福利在线一区二区三区 | 欧美日韩99 | juliaann第一次和老师 | 在线97视频| 精品一区电影 | 亚洲午夜国产 | 久久精品视频日本 |