39 lines
1.2 KiB
Objective-C
39 lines
1.2 KiB
Objective-C
//
|
|
// FishControlThreedViewCell.m
|
|
// Ifish
|
|
//
|
|
// Created by imac on 16/6/29.
|
|
// Copyright © 2016年 lianxiang. All rights reserved.
|
|
//
|
|
|
|
#import "FishControlThreedViewCell.h"
|
|
|
|
@implementation FishControlThreedViewCell
|
|
- (instancetype)initWithFrame:(CGRect)frame{
|
|
|
|
self = [super initWithFrame:frame];
|
|
|
|
if (self) {
|
|
|
|
CGFloat ImgW = self.frame.size.width - 20*2;
|
|
self.setImg = [[UIImageView alloc] initWithFrame:CGRectMake(self.frame.size.width/2 - ImgW/2,self.frame.size.height/2-ImgW/2, ImgW, ImgW)];
|
|
self.setImg.contentMode = UIViewContentModeScaleToFill;
|
|
self.setImg.image = LXImageWithImageName(@"bootview_setImg");
|
|
[self addSubview:self.setImg];
|
|
|
|
UIView *shuLine=[[UIView alloc] initWithFrame:CGRectMake(self.frame.size.width - 1,0, 1, self.frame.size.height)];
|
|
shuLine.backgroundColor = JWUIColorFromRGB(0xdddddd);
|
|
[self addSubview:shuLine];
|
|
|
|
UIView *hengLine=[[UIView alloc] initWithFrame:CGRectMake(0,self.frame.size.height -1,self.frame.size.width, 1)];
|
|
hengLine.backgroundColor = shuLine.backgroundColor = JWUIColorFromRGB(0xdddddd);
|
|
[self addSubview:hengLine];
|
|
|
|
}
|
|
|
|
return self;
|
|
|
|
}
|
|
@end
|
|
|