Initial commit
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// IfishBlackListCenterViewController.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/5/16.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "CenterViewController.h"
|
||||
/**
|
||||
* 设备未授权 主界面 此界面 小圆中显示 @“该设备未授权请联系厂家”
|
||||
*/
|
||||
@interface IfishBlackListCenterViewController : CenterViewController
|
||||
/**
|
||||
* 未授权 label
|
||||
*/
|
||||
|
||||
@property(nonatomic,strong) UILabel *stateLabel;
|
||||
@property(nonatomic,copy) NSString *stateText;
|
||||
|
||||
|
||||
@end
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
//
|
||||
// IfishBlackListCenterViewController.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/5/16.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "IfishBlackListCenterViewController.h"
|
||||
#define kPlace ([UIScreen mainScreen].bounds.size.width - btnWid*2) /4
|
||||
#define btnWid 100
|
||||
@interface IfishBlackListCenterViewController ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation IfishBlackListCenterViewController
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
|
||||
|
||||
//禁掉主界面 刷新
|
||||
self.tableView .scrollEnabled = NO;
|
||||
//隐藏掉 C label 和温度 label
|
||||
self.dulabel.hidden = YES;
|
||||
self.temperature.hidden = YES;
|
||||
self.notOnLineLabel.hidden = YES;
|
||||
// creat stateLabel
|
||||
|
||||
if (kScreenSize.height==480) {
|
||||
|
||||
self.stateLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 60, kScreenSize.width - 2 * kPlace - 100, kScreenSize.width - 2 * kPlace - 200)];
|
||||
self.stateLabel .font = [UIFont fontWithName:@"Avenir Next Condensed" size:15];
|
||||
|
||||
}else{
|
||||
|
||||
self.stateLabel = [[UILabel alloc] initWithFrame:CGRectMake(50, 100, kScreenSize.width - 2 * kPlace - 100, kScreenSize.width - 2 * kPlace - 200)];
|
||||
self.stateLabel .font = [UIFont fontWithName:@"Avenir Next Condensed" size:20];
|
||||
}
|
||||
|
||||
self.stateLabel.text = @"该设备未授权\n请联系厂家";
|
||||
if (self.stateText) {
|
||||
//未知类型
|
||||
self.stateLabel.text = self.stateText;
|
||||
|
||||
}
|
||||
self.stateLabel.textColor = [UIColor colorWithRed:101/255.0f green:103/255.0f blue:103/255.0f alpha:1];
|
||||
self.stateLabel.numberOfLines = 0;
|
||||
|
||||
self.stateLabel.textAlignment = NSTextAlignmentCenter;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* bubble 父类属性
|
||||
*/
|
||||
[self.bubble addSubview:self.stateLabel];
|
||||
[self.indicatorView stopAnimating];
|
||||
|
||||
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning {
|
||||
[super didReceiveMemoryWarning];
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user