- (void)show
{
if ([UIApplication sharedApplication].keyWindow.rootViewController.navigationController) {
[[UIApplication sharedApplication].keyWindow.rootViewController.navigationController.view addSubview:self];
}else{
[[UIApplication sharedApplication].keyWindow addSubview:self];
}
}
- (void)close
{
priceBlock(priceLable.text.intValue);
[self removeFromSuperview];
}
自定义弹框加载方式
时间: 2024-10-14 00:42:56