[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/LizardLife/Coding-iOS/master/Coding_iOS/Views/EaseInputTipsView.m [Back]  [Original]

//
//  EaseInputTipsView.m
//  Coding_iOS
//
//  Created by Ease on 15/5/7.
//  Copyright (c) 2015 Coding. All rights reserved.
//

#import "EaseInputTipsView.h"
#import "Login.h"

@interface EaseInputTipsView ()

@property (strong, nonatomic) UITableView *myTableView;
@property (strong, nonatomic) NSArray *dataList;

@property (strong, nonatomic) NSArray *loginAllList, *emailAllList;

@end

@implementation EaseInputTipsView

+ (instancetype)tipsViewWithType:(EaseInputTipsViewType)type{
    return [[self alloc] initWithTipsType:type];
}

- (instancetype)initWithTipsType:(EaseInputTipsViewType)type{
    CGFloat padingWith = type == EaseInputTipsViewTypeLogin? kLoginPaddingLeftWidth: 0.0;
    self = [super initWithFrame:CGRectMake(padingWith, 0, kScreen_Width-2*padingWith, 120)];
    if (self) {
        [self addRoundingCorners:UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii:CGSizeMake(2, 2)];
        [self setClipsToBounds:YES];
        _myTableView = ({
            UITableView *tableView = [[UITableView alloc] initWithFrame:self.bounds style:UITableViewStylePlain];
            tableView.backgroundColor = [UIColor colorWithWhite:1.0 alpha:0.95];
            tableView.dataSource = self;
            tableView.delegate = self;
            tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
            [self addSubview:tableView];
            [tableView mas_makeConstraints:^(MASConstraintMaker *make) {
                make.edges.equalTo(self);
            }];
            tableView.tableFooterView = [UIView new];
            tableView;
        });
        _type = type;
        _active = YES;
    }
    return self;
}

- (void)refresh{
    [self.myTableView reloadData];
    self.hidden = self.dataList.count 

Web Proxy Viewer  |  New URL  |  Original Page