Z

1.界面切换UI:(UIViewController + UIScrollView)

self.pagerController= [[DMPagerViewController alloc]initWithViewControllers: @[_controllerCamera,_controllerFeeds,_controllerTimeline,]];

self.window= [[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]bounds]];

[_window makeKeyAndVisible];

_window.rootViewController=self.pagerController;

self.pagerController.delegate=self;


2.等待加载动画(类方法创建初始化对象,并且添加到容器中显示)

[LBProgressHUD showHUDto:_vLoading color:CColor(255,255,255) size:48animated:YES];

[LBProgressHUD hideAllHUDsForView:_vLoading animated:YES];


3.弹出菜单框(UIWindow + WindowLevel + 类共创方法获取创建配置好的对象 + 显示方法)

ZFActionSheet *actionSheet = [ZFActionSheet actionSheetWithTitle:nil confirms:@[@"回复",[NSString stringWithFormat:@"分享%@的搜索号",_currentActionMoreFriend.username],@"清空已浏览消息",@"返回"]newsIndex:-1style:ZFActionSheetStyleDefault];

actionSheet.delegate=self;

[actionSheet showInView:self.view.window];

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容