代碼demo已在Github開源, MXActionSheet, 如果能幫助到您,請幫忙點(diǎn)個星star哈,謝謝!
MXActionSheet 是一個從底部上來的彈窗控件,仿微信里操作一樣!
屏幕截圖
| 一個底部標(biāo)題 | 兩個底部標(biāo)題 | 刪除底部標(biāo)題 | 超過兩個底部標(biāo)題 |
|---|---|---|---|
![]() 一個底部標(biāo)題.gif
|
![]() 兩個底部標(biāo)題.gif
|
![]() 刪除底部標(biāo)題.gif
|
![]() 超過兩個底部標(biāo)題.gif
|
如何使用
一個底部標(biāo)題
[MXActionSheet showWithTitle:@"MXActionSheet Supporting bellow Styles" cancelButtonTitle:@"cancel" destructiveButtonTitle:nil otherButtonTitles:@[@"title 1st"] selectedBlock:^(NSInteger index) {
NSLog(@"------> index: %ld", index);
}];
兩個底部標(biāo)題
[MXActionSheet showWithTitle:@"MXActionSheet Supporting bellow Styles" cancelButtonTitle:@"cancel" destructiveButtonTitle:nil otherButtonTitles:@[@"title 1st", @"title 2nd"] selectedBlock:^(NSInteger index) {
NSLog(@"------> index: %ld", index);
}];
刪除底部標(biāo)題
[MXActionSheet showWithTitle:@"MXActionSheet Supporting bellow Styles" cancelButtonTitle:@"cancel" destructiveButtonTitle:@"destructive titles" otherButtonTitles:@[@"title 1st", @"title 2nd"] selectedBlock:^(NSInteger index) {
NSLog(@"------> index: %ld", index);
}];
超過兩個底部標(biāo)題
[MXActionSheet showWithTitle:@"MXActionSheet Supporting bellow Styles" cancelButtonTitle:@"cancel" destructiveButtonTitle:nil otherButtonTitles:@[@"title 1st", @"title 2nd", @"title 3th"] selectedBlock:^(NSInteger index) {
NSLog(@"------> index: %ld", index);
}];



