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];

你可能感兴趣的:(Z)