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.等待加載動(dòng)畫(類方法創(chuàng)建初始化對(duì)象,并且添加到容器中顯示)
[LBProgressHUD showHUDto:_vLoading color:CColor(255,255,255) size:48animated:YES];
[LBProgressHUD hideAllHUDsForView:_vLoading animated:YES];
3.彈出菜單框(UIWindow + WindowLevel + 類共創(chuàng)方法獲取創(chuàng)建配置好的對(duì)象 + 顯示方法)
ZFActionSheet *actionSheet = [ZFActionSheet actionSheetWithTitle:nil confirms:@[@"回復(fù)",[NSString stringWithFormat:@"分享%@的搜索號(hào)",_currentActionMoreFriend.username],@"清空已瀏覽消息",@"返回"]newsIndex:-1style:ZFActionSheetStyleDefault];
actionSheet.delegate=self;
[actionSheet showInView:self.view.window];