第2月第25天 BlocksKit

时间:2024-07-16 20:04:26

1.blockskit

https://github.com/zwaldowski/BlocksKit

bk_showAlertViewWithTitle

2.toast

+(void)showToast:(NSString *)title inView:(UIView *)view{
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:view animated:YES];
hud.mode = MBProgressHUDModeText;
hud.labelText = title;
hud.margin = .f;
hud.yOffset = (kScreen_Height/)-;
hud.removeFromSuperViewOnHide = YES;
[hud hide:YES afterDelay:1.0];
}

3.dispatch_group_create