You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

64 lines
1.7 KiB

//
// baseCollectionViewController.m
// myWatch
//
// Created by xTT on 16/4/13.
// Copyright © 2016年 xTT. All rights reserved.
//
#import "baseCollectionViewController.h"
@interface baseCollectionViewController ()
@end
@implementation baseCollectionViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.myCollectionView.backgroundColor = [UIColor clearColor];
// self.myCollectionView.backgroundColor = tabViewBG;
// self.automaticallyAdjustsScrollViewInsets = NO;
[self.myCollectionView addSubview:self.noDataSourceImageView];
[self.myCollectionView addSubview:self.noReachableImageView];
[self.myCollectionView addSubview:self.noDataSourcelabel];
}
- (void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
[self.myCollectionView reloadData];
if(self.myCollectionView){
[self.noDataSourceImageView mas_remakeConstraints:^(MASConstraintMaker *make) {
make.center.equalTo(self.myCollectionView);
}];
[self.noReachableImageView mas_remakeConstraints:^(MASConstraintMaker *make) {
make.center.equalTo(self.myCollectionView);
}];
}
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (BOOL)prefersStatusBarHidden {
return NO;
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end