本文共 19062 字,大约阅读时间需要 63 分钟。
#define ADHEIGHT 100
#define TABHEIGHT 50
@interface LYHomeVC ()<UITextFieldDelegate,UIScrollViewDelegate,UITableViewDelegate,UITableViewDataSource,UIGestureRecognizerDelegate,LYHomeConvrnientViewDelegate,LYHomeFinaceviewDelegate,LYHomeSaomaviewDelegate>
@property(nonatomic,strong)UITextField *tf;
@property(nonatomic,strong)UIView *btnView;
@property(nonatomic,strong)UIView *topview;//topView
@property(nonatomic,strong)UIView *top;
@property(nonatomic,strong)UIView *bottomView;//
@property(nonatomic,strong)UIScrollView *outScroll;//最为外层的
@property(nonatomic,strong)UIScrollView *innerScroll;//内层的scroll
@property(nonatomic,strong)UITableView *tab;
@property(nonatomic,strong)UIView *saomaView;//
@property(nonatomic,strong)UIView *finaceView;//
@property(nonatomic,strong)UIView *convrnientView;//View
@property(nonatomic,assign)CGFloat bianmingviewH;//view的高度
@property(nonatomic,assign)CGFloat finaceViewH;//
@property(nonatomic,assign)CGFloat saomaViewH;//扫码板块的高度
@property(nonatomic,strong)UIView *innerAdvertiseView;//轮播图view
@property(nonatomic,strong)NSMutableArray *convenientBtntitleArr;//
@property(nonatomic,strong)NSMutableArray *finacetitleArr;//
@property(nonatomic,strong)NSMutableArray *saomatitleArr;//
@property(nonatomic,strong)NSArray *navbtnTitleArr;// 导航上按钮标题数组
@end
static NSString *identifierAddvertise=@"adcell";//显示广告的cell
static NSString *identifierActivity=@"actcell";//活动按钮的cell
@implementation LYHomeVC
//导航上的按钮
-(NSArray *)navbtnTitleArr{
if(nil==_navbtnTitleArr){
_navbtnTitleArr=@[@"saod",@"fukuand",@"shoukuand"];
}
return_navbtnTitleArr;
}
//
-(NSMutableArray *)convenientBtntitleArr{
if(nil==_convenientBtntitleArr){
_convenientBtntitleArr=[NSMutableArrayarrayWithArray:@[@"",@"",@"",@"",@"",@"",@"",@"",@""]];
}
return_convenientBtntitleArr;
}
-(NSMutableArray *)finacetitleArr{
if(nil==_finacetitleArr){
_finacetitleArr=[NSMutableArrayarrayWithArray:@[@"",@"",@"",@"",@"",@"",@"",@""]];
}
return_finacetitleArr;
}
//
-(NSMutableArray *)saomatitleArr{
if(nil==_saomatitleArr){
_saomatitleArr=[NSMutableArrayarrayWithArray:@[@"",@"",@"",@""]];
}
return_saomatitleArr;
}
//各版块View的高度设置
-(void)setHeight{
NSUserDefaults *def=[NSUserDefaultsstandardUserDefaults];
if([defobjectForKey:@"selectBoolArr"]){
NSMutableArray *selectBoolArr=[NSMutableArrayarrayWithArray:[def objectForKey:@"selectBoolArr"]];
NSMutableArray *tempArr=[[NSMutableArrayalloc]init];
for (int i=0;i< selectBoolArr.count; i++) {
if([selectBoolArr[i]isEqualToString:@"0"]){
[tempArr addObject:@""];
}
}
[tempArr addObject:@""];//更多
self.convenientBtntitleArr=tempArr;
}else{
//如果没有缓存,说明是第一次登陆,不处理
}
if([defobjectForKey:@"jinrongSelectBoolArr"]){
NSMutableArray *selectBoolArr=[NSMutableArrayarrayWithArray:[def objectForKey:@"jinrongSelectBoolArr"]];
NSMutableArray *temFinaceArr=[[NSMutableArrayalloc]init];
for (int i=0;i< selectBoolArr.count; i++) {
if([selectBoolArr[i]isEqualToString:@"0"]){
[temFinaceArr addObject:@""];
}
}
[temFinaceArr addObject:@""];//更多
self.finacetitleArr=temFinaceArr;
}else{
//如果没有缓存,说明是第一次登陆,不处理
}
CGFloat w=WIDTH/4;
if(self.saomatitleArr.count<=4){
self.saomaViewH=w;
}elseif(self.saomatitleArr.count<=8 & self.saomatitleArr.count>4){
self.saomaViewH=w*2;
}elseif (self.saomatitleArr.count<=12 & self.saomatitleArr.count>8){
self.saomaViewH=w*3;
}
if(self.convenientBtntitleArr.count<=4){
self.bianmingviewH=w;
}elseif(self.convenientBtntitleArr.count<=8 & self.convenientBtntitleArr.count>4){
self.bianmingviewH=w*2;
}elseif (self.convenientBtntitleArr.count<=12 & self.convenientBtntitleArr.count>8){
self.bianmingviewH=w*3;
}
if(self.finacetitleArr.count<=4){
self.finaceViewH=w;
}elseif(self.finacetitleArr.count<=8 & self.finacetitleArr.count>4){
self.finaceViewH=w*2;
}elseif (self.finacetitleArr.count<=12 & self.finacetitleArr.count>8){
self.finaceViewH=w*3;
}
}
- (void)viewDidLoad {
[superviewDidLoad];
[self setHeight];//设置View的高度
self.edgesForExtendedLayout=UIRectEdgeNone;
self.automaticallyAdjustsScrollViewInsets=NO;
self.view.backgroundColor=[UIColorcolorWithRed:231.0/255 green:231.0/255 blue:231.0/255alpha:1];
[selfsetScrollTopView];//
//inneracroll底部的截止线
[selfsetTab];
//去掉导航横线
[self.navigationController.navigationBarsetBackgroundImage:[UIImagenew] forBarMetrics:UIBarMetricsDefault];
[self.navigationController.navigationBarsetShadowImage:[UIImagenew]];
self.edgesForExtendedLayout=UIRectEdgeNone;
self.automaticallyAdjustsScrollViewInsets=NO;
// [self masonrylayout];
[selfsetGesture];//改变手势
[self.innerScroll.headerbeginRefreshing];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)),dispatch_get_main_queue(), ^{
[self.innerScroll.headerendRefreshing];
});
//接受通知
[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(changgeHomeBianmingBtn:)name:@"changeHomeBianmingBtn"object:nil];
}
-(void)changgeHomeBianmingBtn:(NSNotification *)noti{
NSLog(@"通知");//先收到通知,再执行view的Viewdidlayoutsubviews
NSDictionary *dict=noti.userInfo;
NSMutableArray *tempTitleArr=dict[@"tempTitleArr"];
self.convenientBtntitleArr=tempTitleArr;
[selfsetHeight];//重新计算高度
//重新改变frame
CGRect topviewframe=self.topview.frame;
topviewframe.size.height=WIDTH/4+self.bianmingviewH;
self.topview.frame=topviewframe;
CGRect bottomViewframe=self.bottomView.frame;
bottomViewframe.size.height=self.bianmingviewH;
self.bottomView.frame=bottomViewframe;
CGRect coveninetframe=self.convrnientView.frame;
coveninetframe.size.height=self.bianmingviewH;
self.convrnientView.frame=coveninetframe;
CGRect innerScrollFrame=self.innerScroll.frame;
innerScrollFrame.origin.y=WIDTH/4+self.bianmingviewH+10;
innerScrollFrame.size.height=HEIGHT-64-49-(WIDTH/4+self.bianmingviewH+10);
self.innerScroll.frame=innerScrollFrame;
self.innerScroll.frame=innerScrollFrame;
}
-(void)viewWillAppear:(BOOL)animated{
NSLog(@"viewwillappear");
}
-(void)viewDidAppear:(BOOL)animated{
NSLog(@"viewdidappear");
[self.navigationController.navigationBarsetBarTintColor:[UIColorcolorWithRed:39.0/255 green:131.0/255 blue:207.0/255alpha:1]];//导航背景颜色
[selfsetTitleView];//导航
}
-(void)viewWillLayoutSubviews{
NSLog(@"viewdidlayoutsubviews");
[superviewWillLayoutSubviews];
NSLog(@"topview---%f----bottomview---%f----convientview---%f---",self.topview.frame.size.height,self.bottomView.frame.size.height,self.convrnientView.frame.size.height);
}
//在将要push出去的时候把导航栏清空,
-(void)viewWillDisappear:(BOOL)animated{
NSLog(@"viewwilldisappear");
NSLog(@"View将要消失");
for (UIView *vin self.navigationController.navigationBar.subviews){
[v removeFromSuperview];
}
}
//改变手势
-(void)setGesture{
//移除outScroll原有手势操作
NSMutableArray *list = [NSMutableArrayarrayWithArray:self.outScroll.gestureRecognizers];
for (UIGestureRecognizer *gestureRecognizerin list) {
[self.outScrollremoveGestureRecognizer:gestureRecognizer];
}
//将innerScroll的手势操作加到outScroll中----当我滑动屏幕的时候,触发的是outscrollView的滑动,因为手势是innerscrollView的,所以也会触发innerscrollview的滑动
for (UIGestureRecognizer *gestureRecognizerin self.innerScroll.gestureRecognizers) {
[self.outScrolladdGestureRecognizer:gestureRecognizer];
}
}
-(void)masonrylayout{
[self.outScrollmas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(HEIGHT-64-49-10);
}];
//注意scrollview内部的布局要注意,如果以相对于scrollview布局会有问题!!!!!
//topview 相对于self.view布局
[self.topviewmas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(WIDTH/4+self.bianmingviewH);
}];
[self.topmas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.topview);
make.height.mas_equalTo(WIDTH/4);
}];
[self.bottomViewmas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.top.mas_bottom);
make.left.right.equalTo(self.topview);
make.height.mas_equalTo(self.bianmingviewH);
}];
[self.innerScrollmas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self.view);
make.top.equalTo(self.view).offset(WIDTH/4+self.bianmingviewH+10);
make.height.mas_equalTo(HEIGHT-64-49-(WIDTH/4+self.bianmingviewH+10));//需要根据tabview的高度做相应设置-----
}];
//注意scrollview内部的布局要注意,如果相对于scrollview布局会有问题!!!!!
//相对于topView布局
}
-(void)setScrollTopView{
//最外层的scroll
UIScrollView *outScroll=[[UIScrollViewalloc]initWithFrame:CGRectMake(0, 0,WIDTH, HEIGHT-64-49)];
// outScroll.backgroundColor=[UIColor blueColor];
[self.viewaddSubview:outScroll];
outScroll.backgroundColor=[UIColorcolorWithRed:231.0/255 green:231.0/255 blue:231.0/255alpha:1];
self.outScroll=outScroll;/
// outScroll.contentSize=CGSizeMake(0, 10);//因为是innerscrollView的手势,所以这里可以不设置滑动的范围,innerscrollView的滑动距离限制了outScroll的滚动范围
outScroll.showsVerticalScrollIndicator=NO;
outScroll.delegate=self;
outScroll.tag=14001;
outScroll.clipsToBounds=NO;
outScroll.header=[MJRefreshNormalHeaderheaderWithRefreshingBlock:^{
}];
// //内层的scroll---***********--
LYHomeInnerScrollView *innerScroll=[[LYHomeInnerScrollViewalloc]initWithFrame:CGRectMake(0,WIDTH/4+self.bianmingviewH+10,WIDTH,HEIGHT-64-49-(WIDTH/4+self.bianmingviewH+10))];//
[outScroll addSubview:innerScroll];
self.innerScroll=innerScroll;
innerScroll.contentSize=CGSizeMake(0,ADHEIGHT+10+self.finaceViewH+10+TABHEIGHT);//innerscroll中实际装的内容的高度
innerScroll.delegate=self;
innerScroll.tag=14002;
[selfsetinnerScroll];
innerScroll.clipsToBounds=NO;//超出scrollView的部分也可以看见,
innerScroll.showsVerticalScrollIndicator=YES;
innerScroll.backgroundColor=[UIColorclearColor];
innerScroll.backgroundColor=[UIColorgreenColor];
innerScroll.header=[MJRefreshNormalHeaderheaderWithRefreshingBlock:^{
}];
innerScroll.header.ignoredScrollViewContentInsetTop=10.0;//调整刷新控件的位置
//
UIView *topview=[[UIViewalloc]initWithFrame:CGRectMake(0, 0,WIDTH, WIDTH/4+self.bianmingviewH)];
[outScroll addSubview:topview];
self.topview=topview;///
topview.backgroundColor=[UIColorcolorWithRed:39.0/255 green:131.0/255 blue:207.0/255alpha:1];
//扫码
UIView *top=[[UIViewalloc]initWithFrame:CGRectMake(0, 0,WIDTH, WIDTH/4)];
top.backgroundColor=[UIColorcolorWithRed:39.0/255 green:131.0/255 blue:207.0/255alpha:1];
self.top=top;
[topview addSubview:top];
[selfsettopView];//
//便民
self.bottomView=[[UIViewalloc]initWithFrame:CGRectMake(0,WIDTH/4,WIDTH, self.bianmingviewH)];
self.bottomView.backgroundColor=[UIColorclearColor];
// self.bottomView.clipsToBounds=YES;
[topview addSubview:self.bottomView];
[selfsetbottomView];
}
-(void)settopView{
LYHomeSaomaview *saomaView=[[LYHomeSaomaviewalloc]initWithFrame:CGRectMake(0, 0,WIDTH, WIDTH/4)];
self.saomaView=saomaView;
saomaView.delegate=self;
saomaView.backgroundColor=[UIColorclearColor];
[self.topaddSubview:saomaView];
}
-(void)setbottomView{
LYHomeConvrnientView *convrnientView=[[LYHomeConvrnientViewalloc]initWithFrame:CGRectMake(0,0,WIDTH, self.bianmingviewH)];
convrnientView.delegate=self;
self.convrnientView=convrnientView;
[self.bottomViewaddSubview:convrnientView];
}
-(void)setinnerScroll{
LYHomeinnerAdvertiseView *innerAdvertiseView=[[LYHomeinnerAdvertiseViewalloc]initWithFrame:CGRectMake(0, 0,WIDTH, ADHEIGHT)];
[self.innerScrolladdSubview:innerAdvertiseView];
self.innerAdvertiseView=innerAdvertiseView;
[selfsetFinaceview];
}
//商城,金融等
-(void)setFinaceview{
LYHomeFinaceview *finaceView=[[LYHomeFinaceviewalloc]initWithFrame:CGRectMake(0,50,WIDTH, self.finaceViewH)];
self.finaceView=finaceView;
finaceView.delegate=self;
[self.innerScrolladdSubview:finaceView];
}
//最底部的那条线
-(void)setTab{
//一行cell作为inneracroll底部的截止线
UITableView *tab=[[UITableViewalloc]initWithFrame:CGRectMake(0,ADHEIGHT+ 10+self.finaceViewH+10,WIDTH, TABHEIGHT) style:UITableViewStylePlain];//table d的高度根据cell的个数确定
tab.delegate=self;
tab.dataSource=self;
[self.innerScrolladdSubview:tab];
[tab registerClass:[UITableViewCellclass] forCellReuseIdentifier:identifierAddvertise];
self.tab=tab;
tab.tag=14003;
tab.clipsToBounds=NO;
tab.backgroundColor=[UIColorclearColor];
tab.separatorStyle=UITableViewCellSeparatorStyleNone;
}
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
return 1;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return 1;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
UITableViewCell *cell=[tableViewdequeueReusableCellWithIdentifier:identifierAddvertise];
// cell.textLabel.text=@"我是有底线的";
cell.contentView.backgroundColor=[UIColorcolorWithPatternImage:[UIImageimageNamed:@"dixian"]];
cell.textLabel.font=[UIFontsystemFontOfSize:12];
cell.textLabel.textAlignment=NSTextAlignmentCenter;
cell.selectionStyle=UITableViewCellSelectionStyleNone;
return cell;
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
return 20;
}
// 点击tf跳转到搜索页
-(void)tfClick{
LYHomeSearchVC *searchVC=[[LYHomeSearchVCalloc]init];
[self.navigationControllerpushViewController:searchVCanimated:YES];
// [self presentViewController:searchVC animated:YES completion:nil];
}
-(void)setTitleView{
UITextField *tf=[[UITextFieldalloc]initWithFrame:CGRectMake(0, 0,WIDTH-50, 30)];
UIButton *coverBtn=[[UIButtonalloc]initWithFrame:CGRectMake(0, 0,WIDTH-50, 30)];
coverBtn.backgroundColor=[UIColorclearColor];
[tf addSubview:coverBtn];
[coverBtn addTarget:selfaction:@selector(tfClick)forControlEvents:UIControlEventTouchDown];
self.tf=tf;
tf.placeholder=@"ss";
tf.backgroundColor=[UIColorcolorWithRed:33.0/255 green:115.0/255 blue:182.0/255alpha:1 ];
// tf.borderStyle=UITextBorderStyleRoundedRect;
UIImageView *imageV=[[UIImageViewalloc]initWithFrame:CGRectMake(5, 0, 15, 15)];
imageV.image=[UIImageimageNamed:@"sousuo"];
UILabel *leftlbl=[[UILabelalloc]initWithFrame:CGRectMake(0, 0, 5, 20)];
leftlbl.backgroundColor=[UIColorclearColor];
UIView *leftV=[[UIViewalloc]initWithFrame:CGRectMake(0, 0, 20, 20)];
[leftV addSubview:leftlbl];
[leftV addSubview:imageV];
tf.leftView=leftV;
tf.leftViewMode=UITextFieldViewModeAlways;
tf.keyboardType=UIKeyboardTypeDefault;
tf.clearButtonMode=UITextFieldViewModeAlways;
tf.rightViewMode=UITextFieldViewModeAlways;
tf.autocapitalizationType=UITextAutocapitalizationTypeNone;
tf.returnKeyType=UIReturnKeySearch;
tf.delegate=self;
self.navigationItem.titleView=tf;//
//刚开始隐藏的view
UIView *btnView=[[UIViewalloc]initWithFrame:CGRectMake(0, 0,WIDTH, 40)];
self.btnView=btnView;
btnView.alpha=0;// 0代表完全透明
[self.navigationController.navigationBaraddSubview:btnView];/
for (int i=0; i<3; i++) {
UIButton *btn=[[UIButtonalloc]initWithFrame:CGRectMake(i*50, 0, 50, 40)];
[btn setImage:[UIImageimageNamed:self.navbtnTitleArr[i]]forState:UIControlStateNormal];
btn.tag=15000+i;
[btn addTarget:selfaction:@selector(titleviewBtn:)forControlEvents:UIControlEventTouchDown];
[btn setBackgroundColor:[UIColorclearColor]];
[btnView addSubview:btn];
}
}
-(void)buttonClicked:(UIButton *)btn{
NSLog(@"tag0001--%tu",btn.tag);
btn.userInteractionEnabled=YES;//先把按钮手势交互打开
}
//首页导航上的按钮点击方法
-(void)titleviewBtn:(UIButton *)btn{
NSLog(@"tag000 --%tu",btn.tag);
btn.userInteractionEnabled=NO;//先把按钮手势交互禁用
// //先将未到时间执行前的任务取消。取消buttonClicked的点击方法,----和上面的方法参数必须一致,否则不生效
// [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(buttonClicked:) object:btn];
//执行我们需要实现的内容
NSInteger tag=btn.tag-15000;
if(tag==0){ /
}elseif(tag==1){
}elseif(tag==2){ //
}
//执行的方法,
[selfperformSelector:@selector(buttonClicked:)withObject:btn afterDelay:3];
}
//collectionvew的滚动----设置回到顶部的btn和导航背景显示渐变
-(void)scrollViewDidScroll:(UIScrollView *)scrollView{
// NSLog(@"---scrolltag---%tu",scrollView.tag);
NSInteger stag=scrollView.tag-14000;
CGPoint point = scrollView.contentOffset;
if(point.y<=0){
self.saomaView.alpha=1;
}
if(stag==1){
CGPoint point = scrollView.contentOffset;
// NSLog(@"offset%f",point.y);
if(point.y<0)
{
// [self.coverview removeFromSuperview];
[UIViewanimateWithDuration:0.5 animations:^{
self.tf.alpha = 1;
}];
// self.outScroll.contentOffset=CGPointMake(0, 0);//固定住顶部的topview
}
else
{
// [self setcoverview];//重新添加coverview
CGFloat bgAlpha = 64.0/(point.y*10 +64);
[UIViewanimateWithDuration:0.3 animations:^{
self.tf.backgroundColor = [UIColorcolorWithRed:33.0/255 green:115.0/255 blue:182.0/255alpha:1 ];//导航背景色渐变
self.tf.alpha=bgAlpha;
self.saomaView.alpha=64.0/(point.y*10 +64);
}];
if(point.y>=30){
self.tf.alpha=0;
}
if(point.y>40){
self.saomaView.alpha=0;
}
if(point.y<30){
self.btnView.alpha=0;
}
if(point.y==30){
self.btnView.alpha=0.06;
}
if(point.y>30 && point.y<=60){
CGFloat btnviewalaha=point.y*5/(64.0+236);
self.btnView.alpha=btnviewalaha;
}elseif (point.y>=60){
self.btnView.alpha=1;
}
}
}elseif (stag==2){
CGPoint point = scrollView.contentOffset;
// NSLog(@"offset%f",point.y);
if(point.y<0)
{
// [self.coverview removeFromSuperview];//移除coverview
[UIViewanimateWithDuration:0.5 animations:^{
self.tf.alpha = 1;
}];
// self.outScroll.contentOffset=CGPointMake(0, 0);//固定住顶部的topview
}
else
{
// [self setcoverview];//重新添加coverview
CGRect frame=self.topview.frame;
frame.origin.y=-point.y;
self.topview.frame=frame;
CGFloat bgAlpha = 64.0/(point.y*10 +64);
[UIViewanimateWithDuration:0.3 animations:^{
self.tf.backgroundColor = [UIColorcolorWithRed:33.0/255 green:115.0/255 blue:182.0/255alpha:1 ];//导航背景色渐变
self.tf.alpha=bgAlpha;
self.saomaView.alpha=64.0/(point.y*10 +64);
}];
if(point.y>=30){
self.tf.alpha=0;
}
if(point.y>40){
self.saomaView.alpha=0;
}
if(point.y<30 ){
self.btnView.alpha=0;
}
if(point.y==30){
self.btnView.alpha=0.06;
}
if(point.y>30 && point.y<=60){
CGFloat btnviewalaha=point.y*5/(64.0+236);
self.btnView.alpha=btnviewalaha;
}elseif (point.y>=60){
self.btnView.alpha=1;
}
}
}
}
-(void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{
[self.innerScroll.headerendRefreshing];
}
- (void)didReceiveMemoryWarning {
[superdidReceiveMemoryWarning];
}
#pragma mark 代理
-(void)LYHomeConvrnientView:(LYHomeConvrnientView *)LYHomeConvrnientView item:(NSString *)item{
self.btnView.alpha=0;/这里可以控制导航上面的显示
//
if([itemisEqualToString:@""]){
}
if([itemisEqualToString:@""]){
}
if([itemisEqualToString:@""]){
}
if([itemisEqualToString:@""]){ //
}
if([itemisEqualToString:@""]){
}
if([itemisEqualToString:@""]){ //
}
if([itemisEqualToString:@""]){ //
}
if([itemisEqualToString:@""]){ //
}
if([itemisEqualToString:@""]){ //
}
if([itemisEqualToString:@""]){ //
}
if([itemisEqualToString:@""]){ //
}
if([itemisEqualToString:@""]){ //
}
}
-(void)LYHomeFinaceview:(LYHomeFinaceview *)LYHomeFinaceview item:(NSString *)item{
//
self.btnView.alpha=0;
if([itemisEqualToString:@""]){ //
// dispatch_get_global_queue(0,0)
// dispatch_get_main_queue();
//自定义并发队列
// dispatch_queue_t queue = dispatch_queue_create("wfshop", DISPATCH_QUEUE_CONCURRENT);
dispatch_async(dispatch_get_main_queue(), ^{
});
}
if([itemisEqualToString:@""]){ //
}
if([itemisEqualToString:@""]){ //
}
if([itemisEqualToString:@""]){ //
}
if([itemisEqualToString:@""]){
// LYHomeBanKaVC *bankvc=[[LYHomeBanKaVC alloc]init];
// [self.navigationController pushViewController:bankvc animated:YES];
}
if([itemisEqualToString:@""]){
}
if([itemisEqualToString:@""]){
}
if([itemisEqualToString:@""]){
}
if([itemisEqualToString:@""]){
}
}
-(void)LYHomeSaomaview:(LYHomeSaomaview *)LYHomeSaomaview item:(NSInteger)item{
if(item==0){
}
if(item==1){ /
}
if(item==3){
}
}
-(void)LYHomeSaomaview:(LYHomeSaomaview *)LYHomeSaomaview{
}
转载地址:http://xbmgi.baihongyu.com/