Commit 157084af authored by zhu's avatar zhu

no message

parent af8e692b
//
// CustomPictureShowCell.h
// Lighting
//
// Created by mac on 16/5/16.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CustomPictureShowCell : UITableViewCell
@property (nonatomic,strong)UIImageView *pictureView1;
@property (nonatomic,strong)UIImageView *pictureView2;
@property (nonatomic,strong)UIImageView *pictureView3;
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier withImageName:(NSString *)imageName;
@end
//
// CustomPictureShowCell.m
// Lighting
//
// Created by mac on 16/5/16.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "CustomPictureShowCell.h"
@implementation CustomPictureShowCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier withImageName:(NSString *)imageName{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
// [self setFrame:self.frame];
// self.frame.size.width=800;
[self bulidLayout];
}
return self;
}
-(void)bulidLayout
{
self.pictureView1=[[UIImageView alloc]initWithFrame:CGRectMake(5, 5, (self.frame.size.width-30)/3, 140)];
[self addSubview:self.pictureView1];
self.pictureView2=[[UIImageView alloc]initWithFrame:CGRectMake(5+10+(self.frame.size.width-30)/3, 5, (self.frame.size.width-30)/3, 140)];
[self addSubview:self.pictureView2];
self.pictureView3=[[UIImageView alloc]initWithFrame:CGRectMake(5+10+2*(self.frame.size.width-30)/3 +10, 5, (self.frame.size.width-30)/3, 140)];
[self addSubview:self.pictureView3];
}
//- (void)setFrame:(CGRect)frame {
// [super setFrame:frame];
// frame.size.width = 800;
//
//
//}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
......@@ -27,22 +27,17 @@
self.backGroundImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"backView.png"]];
self.backGroundImageView.frame=CGRectMake(0, 0, ScreenWidth, ScreenHeight);
[self.view addSubview:self.backGroundImageView];
self.leftSubView=[[LeftSubView alloc]initWithFrame:CGRectMake(0, 0, 200, ScreenHeight-200)];
self.leftSubView=[[LeftSubView alloc]initWithFrame:CGRectMake(0, 0, 200, ScreenHeight-150)];
self.leftSubView.delegate=self;
[self.view addSubview:self.leftSubView];
self.rightSubView=[[RightSubView alloc]initWithFrame:CGRectMake(ScreenWidth-200, 0, 200, ScreenHeight-200)];
self.rightSubView=[[RightSubView alloc]initWithFrame:CGRectMake(ScreenWidth-200, 0, 200, ScreenHeight-150)];
self.rightSubView.delegate=self;
[self.view addSubview:self.rightSubView];
self.footSubView=[[FootSubView alloc]initWithFrame:CGRectMake(0, ScreenHeight-200, ScreenWidth, 200)];
self.footSubView=[[FootSubView alloc]initWithFrame:CGRectMake(0, ScreenHeight-150, ScreenWidth, 150)];
self.footSubView.delegate=self;
[self.view addSubview:self.footSubView];
//点击手势
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(DismissScreenView:)];
tap.delegate = self;
tap.cancelsTouchesInView = NO;
[[UIApplication sharedApplication].keyWindow addGestureRecognizer:tap];
}
......@@ -107,11 +102,8 @@
- (void)addProductImage:(UIImage*)image
{
ImageCropperView *cropper=[[ImageCropperView alloc]initWithFrame:CGRectMake(400, 300, 300, 300)];
// cropper.center=self.view.center;
// cropper.bounds=CGRectMake(0, 0, 200, 200);
cropper.layer.borderWidth = 1.0;
cropper.layer.borderColor = [UIColor blueColor].CGColor;
// [cropper setup];
cropper.image = image;
[self.view addSubview:cropper];
}
......@@ -129,9 +121,9 @@
[UIView beginAnimations:@"quanping" context:nil];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:1.0f];
self.leftSubView.frame=CGRectMake(-200, 0, 200, ScreenHeight-200);
self.rightSubView.frame=CGRectMake(ScreenWidth, 0, 200, ScreenHeight-200);
self.footSubView.frame=CGRectMake(0, ScreenHeight, ScreenWidth, 200);
self.leftSubView.frame=CGRectMake(-200, 0, 200, ScreenHeight-150);
self.rightSubView.frame=CGRectMake(ScreenWidth, 0, 200, ScreenHeight-150);
self.footSubView.frame=CGRectMake(0, ScreenHeight, ScreenWidth, 150);
self.temporaryBtn.frame=CGRectMake(sender.frame.origin.x, 20, sender.frame.size.width, sender.frame.size.height);
[UIView commitAnimations];
}
......@@ -142,9 +134,9 @@
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(animationFinish)];
[UIView setAnimationDuration:1.0f];
self.leftSubView.frame=CGRectMake(0, 0, 200, ScreenHeight-200);
self.rightSubView.frame=CGRectMake(ScreenWidth-200, 0, 200, ScreenHeight-200);
self.footSubView.frame=CGRectMake(0, ScreenHeight-200, ScreenWidth, 200);
self.leftSubView.frame=CGRectMake(0, 0, 200, ScreenHeight-150);
self.rightSubView.frame=CGRectMake(ScreenWidth-200, 0, 200, ScreenHeight-150);
self.footSubView.frame=CGRectMake(0, ScreenHeight-150, ScreenWidth, 150);
sender.frame=self.zoomButton.frame;
[UIView commitAnimations];
......@@ -157,13 +149,15 @@
//添加场景
-(void)addSceneLibraryView
{
self.seceneLibraryView=[[SeceneLibraryView alloc]initWithFrame:CGRectMake(100, 50, ScreenWidth-200, ScreenHeight-200)];
self.seceneLibraryView=[[SeceneLibraryView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight)];
self.seceneLibraryView.backgroundColor=[UIColor clearColor];
[self.view addSubview:self.seceneLibraryView];
}
//添加产品
-(void)addProductLibraryView
{
self.productLibraryView=[[ProductLibraryView alloc]initWithFrame:CGRectMake(100, 50, ScreenWidth-200, ScreenHeight-200)];
self.productLibraryView=[[ProductLibraryView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight)];
self.productLibraryView.backgroundColor=[UIColor clearColor];
[self.view addSubview:self.productLibraryView];
}
- (void)didReceiveMemoryWarning {
......@@ -171,21 +165,6 @@
// Dispose of any resources that can be recreated.
}
-(void)DismissScreenView:(UITapGestureRecognizer*)sender{
CGPoint point = [sender locationInView:self.view];
if (point.x<100 || point.x >ScreenWidth-100||point.y<50||point.y>ScreenHeight-150) {
if (self.seceneLibraryView) {
[self.seceneLibraryView removeFromSuperview];
}
if (self.productLibraryView) {
[self.productLibraryView removeFromSuperview];
}
}
}
/*
#pragma mark - Navigation
......
......@@ -158,7 +158,7 @@
return;
}
goodsNumber --;
self.headerView.goodsNumber.text = [NSString stringWithFormat:@"%ld",goodsNumber];
self.headerView.goodsNumber.text = [NSString stringWithFormat:@"%d",goodsNumber];
}
break;
......@@ -171,7 +171,7 @@
return;
}
goodsNumber ++;
self.headerView.goodsNumber.text = [NSString stringWithFormat:@"%ld",goodsNumber];
self.headerView.goodsNumber.text = [NSString stringWithFormat:@"%d",goodsNumber];
}
break;
......@@ -200,7 +200,7 @@
if ([inputString integerValue] > [self.entity.number integerValue]) {
[self ErrorMBProgressView:@"超过库存数量"];
textField.text = [NSString stringWithFormat:@"%ld",[self.entity.number integerValue]];
textField.text = [NSString stringWithFormat:@"%d",[self.entity.number integerValue]];
return;
}
}
......
......@@ -7,7 +7,20 @@
//
#import <UIKit/UIKit.h>
#import "CustomPictureShowCell.h"
@interface ProductLibraryView : UIView
@interface ProductLibraryView :UIView<UIGestureRecognizerDelegate,UITableViewDelegate,UITableViewDataSource>
@property (nonatomic,strong) UIView *subView;
@property (nonatomic,strong) UIView *headerView;
@property (nonatomic,strong) UITableView *seceneTableView;
@property (nonatomic,strong) UITableView *pictureTableView;
@property (nonatomic,strong) UIButton *kongJianBtn;
@property (nonatomic,strong) UIButton *fengGeBtn;
@property (nonatomic,strong) UIButton *leiXingBtn;
@property (nonatomic,strong) NSMutableArray *nameData;
@property (nonatomic,strong) NSMutableArray *arrayData;
@property (nonatomic,strong) NSMutableArray *array1;
@property (nonatomic,strong) NSMutableArray *array2;
@property (nonatomic,strong) NSMutableArray *array3;
@end
......@@ -12,12 +12,181 @@
- (instancetype)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
self.backgroundColor=[UIColor redColor];
// [self initdata];
// [self initSubView];
[self initdata];
[self initSubView];
}
return self;
}
-(void)initdata
{
self.arrayData=[[NSMutableArray alloc]init];
self.nameData=[[NSMutableArray alloc]initWithObjects:@"风格",@"类型",@"空间",@"材质",@"价格", @"",@"高级",nil];
self.array1=[[NSMutableArray alloc]initWithObjects:@"吊灯",@"壁灯",@"台灯",@"落地灯",@"吸顶灯", @"镜前灯",@"烛台灯",@"过厅灯",@"过道灯",@"商业照明",@"家具饰品",@"其他",nil];
self.array2=[[NSMutableArray alloc]initWithObjects:@"水晶系列",@"金属系列",@"商照电工",@"陶瓷",@"木艺", @"其它",nil];
self.array3=[[NSMutableArray alloc]initWithObjects:@"田园",@"宫廷",@"乡村",@"日式风格",@"欧式风格", @"混搭风格",@"现代简约",nil];
self.arrayData=self.array3;
}
-(void)initSubView
{
for (int i=0; i<self.nameData.count; i++) {
if (i !=5) {
UIButton *btn=[UIButton buttonWithType:UIButtonTypeCustom];
btn.frame=CGRectMake(ScreenWidth-190, 52+i*50, 50, 46) ;
btn.backgroundColor=[UIColor whiteColor];
[btn setTitle:[self.nameData objectAtIndex:i] forState:UIControlStateNormal];
[btn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
// btn.contentEdgeInsets = UIEdgeInsetsMake(0, 60, 0, 0);
[btn addTarget:self action:@selector(selectedType:) forControlEvents:UIControlEventTouchUpInside];
btn.tag=100 +i;
btn.layer.masksToBounds = YES;
btn.layer.cornerRadius = 23;
[self addSubview:btn];
}
}
self.subView=[[UIView alloc]initWithFrame:CGRectMake(100, 50, ScreenWidth-300, ScreenHeight-200)];
self.subView.backgroundColor=[UIColor whiteColor];
[self addSubview:self.subView];
//点击手势
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(DismissScreenView:)];
tap.delegate = self;
tap.cancelsTouchesInView = NO;
[[UIApplication sharedApplication].keyWindow addGestureRecognizer:tap];
[self initSubViews];
}
-(void)initSubViews
{
self.headerView=[[UIView alloc]initWithFrame:CGRectMake(0, 0, self.subView.frame.size.width-100, 50)];
self.headerView.backgroundColor=[UIColor grayColor];
[self.subView addSubview:self.headerView];
UIButton *btn=[UIButton buttonWithType:UIButtonTypeCustom];
btn.frame=CGRectMake(10, 10, 30, 30);
[btn setBackgroundImage:[UIImage imageNamed:@"changjingtubiao"] forState:UIControlStateNormal];
[self.headerView addSubview:btn];
UILabel *lable=[[UILabel alloc]initWithFrame:CGRectMake(45, 10, 100, 30)];
lable.text=@"选择产品";
[self.headerView addSubview:lable];
self.seceneTableView=[[UITableView alloc]initWithFrame:CGRectMake( self.headerView.frame.size.width, 0, 100, self.subView.frame.size.height)];
self.seceneTableView.delegate=self;
self.seceneTableView.dataSource=self;
[self.subView addSubview:self.seceneTableView];
self.pictureTableView=[[UITableView alloc]initWithFrame:CGRectMake( 0, 50, self.headerView.frame.size.width, self.subView.frame.size.height-50)];
self.pictureTableView.delegate=self;
self.pictureTableView.dataSource=self;
[self.subView addSubview:self.pictureTableView];
}
-(void)selectedType:(UIButton *)sender
{
switch (sender.tag) {
case 100:
// 风格
self.arrayData=self.array3;
break;
case 101:
// 类型
self.arrayData=self.array2;
break;
case 102:
// 空间
self.arrayData=self.array1;
break;
case 103:
// 材质
self.arrayData=self.array3;
break;
case 104:
// 价格
self.arrayData=self.array3;
break;
case 106:
// 高级
self.arrayData=self.array3;
break;
default:
break;
}
[self.seceneTableView reloadData];
}
#pragma mark - 协议方法
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{ if ([tableView isEqual:self.seceneTableView])
{
return self.arrayData.count;
}else
{
return 5;
}
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
if ([tableView isEqual:self.seceneTableView])
{
return 50;
}else
{
return 150;
}
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
if ([tableView isEqual:self.seceneTableView])
{
static NSString *cellID = @"ChooseTansferCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
if (cell == nil) {
cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID];
}
cell.textLabel.text=[self.arrayData objectAtIndex:indexPath.row];
return cell;
}else
{
static NSString *CellID = @"TansferCell";
CustomPictureShowCell *cell = [tableView dequeueReusableCellWithIdentifier:CellID];
if (cell == nil) {
cell = [[CustomPictureShowCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellID withImageName:nil];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
}
cell.pictureView1.image=[UIImage imageNamed:@"05产品库-详情_03"];
cell.pictureView2.image=[UIImage imageNamed:@"05产品库-详情_03"];
cell.pictureView3.image=[UIImage imageNamed:@"05产品库-详情_03"];
return cell;
}
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
}
-(void)DismissScreenView:(UITapGestureRecognizer*)sender{
CGPoint point = [sender locationInView:self];
if (point.x<100 || point.x >ScreenWidth-100||point.y<50||point.y>ScreenHeight-150) {
if (self) {
[self removeFromSuperview];
}
}
}
/*
// Only override drawRect: if you perform custom drawing.
......
......@@ -27,7 +27,7 @@
-(void)initSubView
{
UIButton *button=[UIButton buttonWithType:UIButtonTypeCustom];
button.frame=CGRectMake(self.frame.size.width-100, self.frame.size.height-100, 60, 60);
button.frame=CGRectMake(self.frame.size.width-100, self.frame.size.height-60, 60, 60);
button.tag=300;
[button setBackgroundImage:[UIImage imageNamed:@"产品1"] forState:UIControlStateNormal];
[button addTarget:self action:@selector(rightBtnDidSelected:) forControlEvents:UIControlEventTouchUpInside];
......
......@@ -7,7 +7,18 @@
//
#import <UIKit/UIKit.h>
#import "CustomPictureShowCell.h"
@interface SeceneLibraryView : UIView
@interface SeceneLibraryView : UIView<UIGestureRecognizerDelegate,UITableViewDelegate,UITableViewDataSource>
@property (nonatomic,strong) UIView *subView;
@property (nonatomic,strong) UIView *headerView;
@property (nonatomic,strong) UITableView *seceneTableView;
@property (nonatomic,strong) UITableView *pictureTableView;
@property (nonatomic,strong) UIButton *kongJianBtn;
@property (nonatomic,strong) UIButton *fengGeBtn;
@property (nonatomic,strong) UIButton *leiXingBtn;
@property (nonatomic,strong) NSMutableArray *arrayData;
@property (nonatomic,strong) NSMutableArray *array1;
@property (nonatomic,strong) NSMutableArray *array2;
@property (nonatomic,strong) NSMutableArray *array3;
@end
......@@ -12,16 +12,193 @@
- (instancetype)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
self.backgroundColor=[UIColor redColor];
// [self initdata];
[self initSubView];
[self initdata];
[self initView];
}
return self;
}
-(void)initSubView
-(void)initdata
{
self.arrayData=[[NSMutableArray alloc]init];
self.array1=[[NSMutableArray alloc]initWithObjects:@"玄关",@"客厅",@"餐厅",@"主卧室",@"次卧室", @"书房",@"儿童房",@"过厅",@"过道",@"厨房",@"卫生间",@"休闲空间",nil];
self.array2=[[NSMutableArray alloc]initWithObjects:@"现代简约",@"欧式古典",@"新古典",@"中式",@"新中式", @"混搭",@"小美式风格",@"古典美式风格",@"地中海",@"东南亚",@"日式",@"法式",nil];
self.array3=[[NSMutableArray alloc]initWithObjects:@"田园",@"宫廷",@"乡村",@"日式风格",@"欧式风格", @"混搭风格",@"现代简约",nil];
self.arrayData=self.array1;
}
-(void)initView
{
// 空间
self.kongJianBtn=[UIButton buttonWithType:UIButtonTypeCustom];
self.kongJianBtn.frame=CGRectMake(ScreenWidth-250, 52, 100, 46) ;
self.kongJianBtn.backgroundColor=[UIColor whiteColor];
[self.kongJianBtn setTitle:@"空间 " forState:UIControlStateNormal];
[self.kongJianBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
// [self.kongJianBtn setContentHorizontalAlignment:UIControlContentHorizontalAlignmentRight];
self.kongJianBtn.contentEdgeInsets = UIEdgeInsetsMake(0, 60, 0, 0);
[self.kongJianBtn addTarget:self action:@selector(selectedType:) forControlEvents:UIControlEventTouchUpInside];
self.kongJianBtn.tag=101;
self.kongJianBtn.layer.masksToBounds = YES;
self.kongJianBtn.layer.cornerRadius = 15;
[self addSubview:self.kongJianBtn];
// 风格
self.fengGeBtn=[UIButton buttonWithType:UIButtonTypeCustom];
self.fengGeBtn.frame=CGRectMake(ScreenWidth-250, 102, 100, 46) ;
self.fengGeBtn.backgroundColor=[UIColor whiteColor];
[self.fengGeBtn setTitle:@"风格 " forState:UIControlStateNormal];
[self.fengGeBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
// [self.fengGeBtn setContentHorizontalAlignment:UIControlContentHorizontalAlignmentRight];
self.fengGeBtn.contentEdgeInsets = UIEdgeInsetsMake(0, 60, 0, 0);
[self.fengGeBtn addTarget:self action:@selector(selectedType:) forControlEvents:UIControlEventTouchUpInside];
self.fengGeBtn.tag=102;
self.fengGeBtn.layer.masksToBounds = YES;
self.fengGeBtn.layer.cornerRadius = 15;
[self addSubview:self.fengGeBtn];
//类型
self.leiXingBtn=[UIButton buttonWithType:UIButtonTypeCustom];
self.leiXingBtn.frame=CGRectMake(ScreenWidth-250, 152, 100, 46) ;
self.leiXingBtn.backgroundColor=[UIColor whiteColor];
[self.leiXingBtn setTitle:@"类型 " forState:UIControlStateNormal];
[self.leiXingBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
// [self.leiXingBtn setContentHorizontalAlignment:UIControlContentHorizontalAlignmentRight];
self.leiXingBtn.contentEdgeInsets = UIEdgeInsetsMake(0, 60, 0, 0);
[self.leiXingBtn addTarget:self action:@selector(selectedType:) forControlEvents:UIControlEventTouchUpInside];
self.leiXingBtn.tag=103;
self.leiXingBtn.layer.masksToBounds = YES;
self.leiXingBtn.layer.cornerRadius = 15;
[self addSubview:self.leiXingBtn];
self.subView=[[UIView alloc]initWithFrame:CGRectMake(100, 50, ScreenWidth-300, ScreenHeight-200)];
self.subView.backgroundColor=[UIColor whiteColor];
[self addSubview:self.subView];
//点击手势
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(DismissScreenView:)];
tap.delegate = self;
tap.cancelsTouchesInView = NO;
[[UIApplication sharedApplication].keyWindow addGestureRecognizer:tap];
[self initSubViews];
}
-(void)initSubViews
{
self.headerView=[[UIView alloc]initWithFrame:CGRectMake(0, 0, self.subView.frame.size.width-100, 50)];
self.headerView.backgroundColor=[UIColor grayColor];
[self.subView addSubview:self.headerView];
UIButton *btn=[UIButton buttonWithType:UIButtonTypeCustom];
btn.frame=CGRectMake(10, 10, 30, 30);
[btn setBackgroundImage:[UIImage imageNamed:@"changjingtubiao"] forState:UIControlStateNormal];
[self.headerView addSubview:btn];
UILabel *lable=[[UILabel alloc]initWithFrame:CGRectMake(45, 10, 100, 30)];
lable.text=@"选择场景";
[self.headerView addSubview:lable];
self.seceneTableView=[[UITableView alloc]initWithFrame:CGRectMake( self.headerView.frame.size.width, 0, 100, self.subView.frame.size.height)];
self.seceneTableView.delegate=self;
self.seceneTableView.dataSource=self;
[self.subView addSubview:self.seceneTableView];
self.pictureTableView=[[UITableView alloc]initWithFrame:CGRectMake( 0, 50, self.headerView.frame.size.width, self.subView.frame.size.height-50)];
self.pictureTableView.delegate=self;
self.pictureTableView.dataSource=self;
[self.subView addSubview:self.pictureTableView];
}
-(void)selectedType:(UIButton *)sender
{
switch (sender.tag) {
case 101:
// 空间
self.arrayData=self.array1;
break;
case 102:
// 风格
self.arrayData=self.array2;
break;
case 103:
// 类型
self.arrayData=self.array3;
break;
default:
break;
}
[self.seceneTableView reloadData];
}
#pragma mark - 协议方法
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{ if ([tableView isEqual:self.seceneTableView])
{
return self.arrayData.count;
}else
{
return 5;
}
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
if ([tableView isEqual:self.seceneTableView])
{
return 50;
}else
{
return 150;
}
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
if ([tableView isEqual:self.seceneTableView])
{
static NSString *cellID = @"ChooseTansferCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
if (cell == nil) {
cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID];
// cell.selectionStyle = UITableViewCellSelectionStyleNone;
}
cell.textLabel.text=[self.arrayData objectAtIndex:indexPath.row];
return cell;
}else
{
static NSString *CellID = @"TansferCell";
CustomPictureShowCell *cell = [tableView dequeueReusableCellWithIdentifier:CellID];
if (cell == nil) {
cell = [[CustomPictureShowCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellID withImageName:nil];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
}
cell.pictureView1.image=[UIImage imageNamed:@"textpicture"];
cell.pictureView2.image=[UIImage imageNamed:@"textpicture"];
cell.pictureView3.image=[UIImage imageNamed:@"textpicture"];
return cell;
}
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
}
-(void)DismissScreenView:(UITapGestureRecognizer*)sender{
CGPoint point = [sender locationInView:self];
if (point.x<100 || point.x >ScreenWidth-100||point.y<50||point.y>ScreenHeight-150) {
if (self) {
[self removeFromSuperview];
}
}
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
......
......@@ -14,6 +14,7 @@
04A14A251CE0FC3A00DAD5F3 /* LeftSubView.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A14A241CE0FC3A00DAD5F3 /* LeftSubView.m */; };
04A14A281CE0FC5600DAD5F3 /* RightSubView.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A14A271CE0FC5600DAD5F3 /* RightSubView.m */; };
04A14A2B1CE0FC7F00DAD5F3 /* FootSubView.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A14A2A1CE0FC7F00DAD5F3 /* FootSubView.m */; };
04A520411CE9365D001D4520 /* CustomPictureShowCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 04A520401CE9365D001D4520 /* CustomPictureShowCell.m */; };
060D397C1CE45CFE0082AECD /* ImageCropperView.m in Sources */ = {isa = PBXBuildFile; fileRef = 060D39791CE45CFE0082AECD /* ImageCropperView.m */; };
060D397D1CE45CFE0082AECD /* UIImage+Rotation.m in Sources */ = {isa = PBXBuildFile; fileRef = 060D397B1CE45CFE0082AECD /* UIImage+Rotation.m */; };
2906B5D71CD89246000849B4 /* ClientDetailsTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2906B5D61CD89246000849B4 /* ClientDetailsTableViewCell.m */; };
......@@ -128,6 +129,8 @@
04A14A271CE0FC5600DAD5F3 /* RightSubView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RightSubView.m; sourceTree = "<group>"; };
04A14A291CE0FC7F00DAD5F3 /* FootSubView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FootSubView.h; sourceTree = "<group>"; };
04A14A2A1CE0FC7F00DAD5F3 /* FootSubView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FootSubView.m; sourceTree = "<group>"; };
04A5203F1CE9365D001D4520 /* CustomPictureShowCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomPictureShowCell.h; sourceTree = "<group>"; };
04A520401CE9365D001D4520 /* CustomPictureShowCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomPictureShowCell.m; sourceTree = "<group>"; };
060D39781CE45CFE0082AECD /* ImageCropperView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ImageCropperView.h; sourceTree = "<group>"; };
060D39791CE45CFE0082AECD /* ImageCropperView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ImageCropperView.m; sourceTree = "<group>"; };
060D397A1CE45CFE0082AECD /* UIImage+Rotation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImage+Rotation.h"; sourceTree = "<group>"; };
......@@ -382,6 +385,22 @@
name = views;
sourceTree = "<group>";
};
04A5203D1CE90ADB001D4520 /* controller */ = {
isa = PBXGroup;
children = (
);
name = controller;
sourceTree = "<group>";
};
04A5203E1CE93604001D4520 /* customCell */ = {
isa = PBXGroup;
children = (
04A5203F1CE9365D001D4520 /* CustomPictureShowCell.h */,
04A520401CE9365D001D4520 /* CustomPictureShowCell.m */,
);
name = customCell;
sourceTree = "<group>";
};
060D39771CE45CFE0082AECD /* tools */ = {
isa = PBXGroup;
children = (
......@@ -834,6 +853,8 @@
29BB27691CD9DDF3009A0813 /* FollowHeartVC */ = {
isa = PBXGroup;
children = (
04A5203E1CE93604001D4520 /* customCell */,
04A5203D1CE90ADB001D4520 /* controller */,
060D39771CE45CFE0082AECD /* tools */,
0470D60E1CE292EF00647F0F /* subView */,
04A14A221CE0FB8400DAD5F3 /* views */,
......@@ -1229,6 +1250,7 @@
2949BAC21CD3055A0049385A /* MMExampleDrawerVisualStateManager.m in Sources */,
292A14311CE81D1D00EB4430 /* AddressModel.m in Sources */,
29A938221CDADE4700F21E54 /* ProductDetailsTableViewCell.m in Sources */,
04A520411CE9365D001D4520 /* CustomPictureShowCell.m in Sources */,
2992493D1CDB3E8900786B1E /* GenerateOrdersModifyTableViewCell.m in Sources */,
29BB27741CD9DFAC009A0813 /* SceneLibraryViewController.m in Sources */,
2928F8421CD0ABAC0036D761 /* ShoppingViewController.m in Sources */,
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "Cog@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "ablum@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "bg@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "box-副本@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "data@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "dial@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "line@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "search@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "圆角矩形-3@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "当前@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "矢量智能对象@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "10-副本-3@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "7@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "Trash@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "View@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "View1@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "ablum-副本@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "icon-副本@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "icon@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "已完成@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "已撤销@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "已退货@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "icon@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "视角@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "视角1@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "视角3@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "jia@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "筛选@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "筛选1@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "1@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "2@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "icon@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "line@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "Printer@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -9,6 +9,10 @@
"idiom" : "universal",
"filename" : "icon@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
......@@ -4,6 +4,14 @@
"idiom" : "universal",
"filename" : "图层-1.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment