Skip to content

🎏 Pop-up animation, release animation, tabbar pop-up, publish button pop-up options, similar to the free fish release button animation,弹出动画,发布动画,tabbar弹出,发布按钮弹出选项,类似闲鱼发布按钮动画

License

qxuewei/XWPopMenuVC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XWPopMenuVC

弹出动画,发布动画,tabbar弹出,发布按钮弹出选项,类似闲鱼发布按钮动画

项目演示gif动图:
演示效果

使用方法: 1.在发布点击按钮集成操作:

XWPopMenuController *vc = [[XWPopMenuController alloc]init];

//虚化背景
UIImage *image = [UIImage imageWithCaputureView:self.view];

vc.backImg = image;

[self presentViewController:vc animated:NO completion:nil];

2.每个二级界面实现返回block方法

//2.block传值  typedef void(^returnBlock)();
typedef void(^dismissBlock) ();

//block
//block声明属性
@property (nonatomic, copy) dismissBlock mDismissBlock;
//block声明方法
-(void)toDissmissSelf:(dismissBlock)block;

3.在二级界面返回时

//取消按钮点击方法
-(void)cancelClick{
[self finishPublish];
}

#pragma mark - 完成发布
//完成发布
-(void)finishPublish{
//2.block传值
if (self.mDismissBlock != nil) {
self.mDismissBlock();
}
[self dismissViewControllerAnimated:YES completion:nil];
}
//block声明方法
-(void)toDissmissSelf:(dismissBlock)block{
self.mDismissBlock = block;
}

About

🎏 Pop-up animation, release animation, tabbar pop-up, publish button pop-up options, similar to the free fish release button animation,弹出动画,发布动画,tabbar弹出,发布按钮弹出选项,类似闲鱼发布按钮动画

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published