Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-iOS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Opple-iOS
Commits
5437c3e6
Commit
5437c3e6
authored
Apr 29, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caoyunxiao
parent
63fb02bb
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
1469 additions
and
43 deletions
+1469
-43
ClientViewController.h
Lighting/Class/ClientViewController.h
+43
-0
ClientViewController.m
Lighting/Class/ClientViewController.m
+28
-11
CustomerdetailsController.h
Lighting/Class/CustomerdetailsController.h
+13
-0
CustomerdetailsController.m
Lighting/Class/CustomerdetailsController.m
+37
-0
InformationTableViewCell.h
Lighting/Class/InformationTableViewCell.h
+13
-0
InformationTableViewCell.m
Lighting/Class/InformationTableViewCell.m
+24
-0
LoginViewController.m
Lighting/Class/Login/LoginViewController.m
+19
-1
RightViewController.m
Lighting/Class/RightViewController.m
+61
-2
ShoppingTableViewCell.h
Lighting/Class/Shoppingcart/ShoppingTableViewCell.h
+69
-0
ShoppingTableViewCell.m
Lighting/Class/Shoppingcart/ShoppingTableViewCell.m
+47
-0
ShoppingViewController.h
Lighting/Class/Shoppingcart/ShoppingViewController.h
+22
-0
ShoppingViewController.m
Lighting/Class/Shoppingcart/ShoppingViewController.m
+77
-1
CustomTabbarController.m
Lighting/Class/Tabbar/CustomTabbarController.m
+64
-11
Toolview.h
Lighting/Class/Tabbar/Toolview.h
+19
-0
Toolview.m
Lighting/Class/Tabbar/Toolview.m
+48
-3
project.pbxproj
Lighting/Lighting.xcodeproj/project.pbxproj
+149
-3
AppDelegate.h
Lighting/Lighting/AppDelegate.h
+7
-0
StoryboardwithCYX.storyboard
Lighting/Lighting/StoryboardwithCYX.storyboard
+487
-10
CustomButton.h
Lighting/Tools/CustomButton.h
+11
-0
CustomButton.m
Lighting/Tools/CustomButton.m
+24
-1
MMExampleDrawerVisualStateManager.h
Lighting/Tools/MMExampleDrawerVisualStateManager.h
+42
-0
MMExampleDrawerVisualStateManager.m
Lighting/Tools/MMExampleDrawerVisualStateManager.m
+97
-0
PrefixHeader.pch
Lighting/Tools/PrefixHeader.pch
+3
-0
instructionsLabe.h
Lighting/Tools/instructionsLabe.h
+21
-0
instructionsLabe.m
Lighting/Tools/instructionsLabe.m
+44
-0
weibo.png
Lighting/Tools/weibo.png
+0
-0
No files found.
Lighting/Class/ClientViewController.h
View file @
5437c3e6
...
...
@@ -10,4 +10,47 @@
@interface
ClientViewController
:
BaseViewController
/**
* tableview
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UITableView
*
informationTableview
;
/**
* 客户名称
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
customerNameField
;
/**
* 手机号码
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
phoneNumberField
;
/**
* 公司名称
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
companyNameField
;
/**
* 客户地址
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
customerAddress
;
/**
* 添加客户信息
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
addpersonInformationButton
;
/**
* 更改客户信息
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
changePersonInformationButton
;
/**
* 搜索客户信息
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
searchPersonInformationField
;
@end
Lighting/Class/ClientViewController.m
View file @
5437c3e6
...
...
@@ -7,8 +7,8 @@
//
#import "ClientViewController.h"
@interface
ClientViewController
()
#import "InformationTableViewCell.h"
@interface
ClientViewController
()
<
UITableViewDelegate
,
UITableViewDataSource
>
@end
...
...
@@ -18,22 +18,39 @@
[
super
viewDidLoad
];
// Do any additional setup after loading the view.
[
self
uiConfigAction
];
}
#pragma mark -布局
-
(
void
)
uiConfigAction
{
self
.
informationTableview
.
delegate
=
self
;
self
.
informationTableview
.
dataSource
=
self
;
self
.
informationTableview
.
tableFooterView
=
[
UIView
new
];
}
// UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
// button.frame = CGRectMake(100, 100, 100, 100);
// button.backgroundColor = [UIColor blackColor
];
// [self.view addSubview:button];
// [button addTarget:self action:@selector(Click) forControlEvents:UIControlEventTouchUpInside]
;
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
InformationTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"information"
forIndexPath
:
indexPath
];
return
cell
;
}
-
(
NSInteger
)
tableView
:
(
UITableView
*
)
tableView
numberOfRowsInSection
:
(
NSInteger
)
section
{
return
20
;
}
-
(
void
)
Click
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
RightViewController
*
right
=
[[
RightViewController
alloc
]
init
];
[
self
.
navigationController
pushViewController
:
right
animated
:
YES
];
return
100
;
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
...
...
Lighting/Class/CustomerdetailsController.h
0 → 100644
View file @
5437c3e6
//
// CustomerdetailsController.h
// Lighting
//
// Created by 曹云霄 on 16/4/29.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "BaseViewController.h"
@interface
CustomerdetailsController
:
BaseViewController
@end
Lighting/Class/CustomerdetailsController.m
0 → 100644
View file @
5437c3e6
//
// CustomerdetailsController.m
// Lighting
//
// Created by 曹云霄 on 16/4/29.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "CustomerdetailsController.h"
@interface
CustomerdetailsController
()
@end
@implementation
CustomerdetailsController
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
// Do any additional setup after loading the view.
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
}
/*
#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
Lighting/Class/InformationTableViewCell.h
0 → 100644
View file @
5437c3e6
//
// InformationTableViewCell.h
// Lighting
//
// Created by 曹云霄 on 16/4/29.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface
InformationTableViewCell
:
UITableViewCell
@end
Lighting/Class/InformationTableViewCell.m
0 → 100644
View file @
5437c3e6
//
// InformationTableViewCell.m
// Lighting
//
// Created by 曹云霄 on 16/4/29.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "InformationTableViewCell.h"
@implementation
InformationTableViewCell
-
(
void
)
awakeFromNib
{
[
super
awakeFromNib
];
// Initialization code
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
// Configure the view for the selected state
}
@end
Lighting/Class/Login/LoginViewController.m
View file @
5437c3e6
...
...
@@ -9,6 +9,8 @@
#import "LoginViewController.h"
#import "CustomTabbarController.h"
#import "AppDelegate.h"
#import "MMDrawerVisualState.h"
#import "MMExampleDrawerVisualStateManager.h"
@interface
LoginViewController
()
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
loginButton
;
...
...
@@ -27,16 +29,32 @@
#pragma mark -登陆
-
(
IBAction
)
LoginButtonClick
:
(
UIButton
*
)
sender
{
[
self
MMDrawerController
];
}
#pragma mark -MMDrawerController
-
(
void
)
MMDrawerController
{
CustomTabbarController
*
customtabbar
=
[[
CustomTabbarController
alloc
]
init
];
RightViewController
*
rightVC
=
[[
RightViewController
alloc
]
init
];
self
.
drawerController
=
[[
MMDrawerController
alloc
]
initWithCenterViewController
:
customtabbar
rightDrawerViewController
:
rightVC
];
[
self
.
drawerController
setMaximumRightDrawerWidth
:
RightWidth
];
[
self
.
drawerController
setOpenDrawerGestureModeMask
:
MMOpenDrawerGestureModeAll
];
[
self
.
drawerController
setCloseDrawerGestureModeMask
:
MMCloseDrawerGestureModeAll
];
[
self
.
drawerController
setDrawerVisualStateBlock
:
^
(
MMDrawerController
*
drawerController
,
MMDrawerSide
drawerSide
,
CGFloat
percentVisible
)
{
MMDrawerControllerDrawerVisualStateBlock
block
;
block
=
[[
MMExampleDrawerVisualStateManager
sharedManager
]
drawerVisualStateBlockForDrawerSide
:
drawerSide
];
if
(
block
){
block
(
drawerController
,
drawerSide
,
percentVisible
);
}
}];
[[
MMExampleDrawerVisualStateManager
sharedManager
]
setRightDrawerAnimationType
:
MMDrawerAnimationTypeSwingingDoor
];
SHARED_APPDELEGATE
.
mmdrawer
=
self
.
drawerController
;
SHARED_APPDELEGATE
.
window
.
rootViewController
=
self
.
drawerController
;
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
...
...
Lighting/Class/RightViewController.m
View file @
5437c3e6
...
...
@@ -8,20 +8,79 @@
#import "RightViewController.h"
@interface
RightViewController
()
@interface
RightViewController
()
<
UITableViewDataSource
,
UITableViewDelegate
>
@property
(
nonatomic
,
strong
)
UITableView
*
rightTableview
;
@property
(
nonatomic
,
strong
)
NSArray
*
dataArray
;
@end
@implementation
RightViewController
/**
* 初始化数据源
*
* @return NSArray
*/
-
(
NSArray
*
)
dataArray
{
if
(
_dataArray
==
nil
)
{
_dataArray
=
[
NSArray
arrayWithObjects
:
@"随心配"
,
@"体验中心"
,
@"产品库"
,
@"客户管理"
,
@"关于"
,
nil
];
}
return
_dataArray
;
}
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
// Do any additional setup after loading the view.
self
.
view
.
backgroundColor
=
[
UIColor
blueColor
];
[
self
uiConfigAction
];
}
#pragma mark -布局
-
(
void
)
uiConfigAction
{
self
.
rightTableview
=
[[
UITableView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
RightWidth
,
ScreenHeight
)
style
:
UITableViewStylePlain
];
self
.
rightTableview
.
delegate
=
self
;
self
.
rightTableview
.
dataSource
=
self
;
[
self
.
view
addSubview
:
self
.
rightTableview
];
self
.
rightTableview
.
tableFooterView
=
[
UIView
new
];
[
self
.
rightTableview
registerClass
:[
UITableViewCell
class
]
forCellReuseIdentifier
:
@"rightcell"
];
[
self
createHeaderview
];
}
#pragma mark -头部视图
-
(
void
)
createHeaderview
{
UIView
*
headerView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
RightWidth
,
200
)];
UIImageView
*
imageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
80
,
80
)];
imageView
.
center
=
CGPointMake
(
RightWidth
/
2
,
100
);
imageView
.
image
=
TCImage
(
@"weibo"
);
[
headerView
addSubview
:
imageView
];
self
.
rightTableview
.
tableHeaderView
=
headerView
;
}
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
UITableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"rightcell"
forIndexPath
:
indexPath
];
cell
.
textLabel
.
text
=
[
self
.
dataArray
objectAtIndex_opple
:
indexPath
.
row
];
return
cell
;
}
-
(
NSInteger
)
tableView
:
(
UITableView
*
)
tableView
numberOfRowsInSection
:
(
NSInteger
)
section
{
return
self
.
dataArray
.
count
;
}
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
...
...
Lighting/Class/Shoppingcart/ShoppingTableViewCell.h
0 → 100644
View file @
5437c3e6
//
// ShoppingTableViewCell.h
// Lighting
//
// Created by 曹云霄 on 16/4/29.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface
ShoppingTableViewCell
:
UITableViewCell
/**
* 选中
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
selectedButton
;
/**
* 商品图片
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIImageView
*
goodsImageView
;
/**
* 商品信息
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
goodsInformationLabe
;
/**
* 吊牌价格
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
tagsPriceLabe
;
/**
* 成交价格
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
clinchTextfield
;
/**
* 商品数量
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
goodsNumbersLabe
;
/**
* 产品金额
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
productPriceLabe
;
@end
Lighting/Class/Shoppingcart/ShoppingTableViewCell.m
0 → 100644
View file @
5437c3e6
//
// ShoppingTableViewCell.m
// Lighting
//
// Created by 曹云霄 on 16/4/29.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "ShoppingTableViewCell.h"
@implementation
ShoppingTableViewCell
-
(
void
)
awakeFromNib
{
[
super
awakeFromNib
];
// Initialization code
}
#pragma mark -增加或者减少商品
-
(
IBAction
)
reduceAndaddButtonClick
:
(
UIButton
*
)
sender
{
//sender.tag == 100 减少
//sender.tag == 101 增加
}
#pragma mark -商品选中
-
(
IBAction
)
selectedButtonClick
:
(
UIButton
*
)
sender
{
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
// Configure the view for the selected state
}
@end
Lighting/Class/Shoppingcart/ShoppingViewController.h
View file @
5437c3e6
...
...
@@ -10,4 +10,26 @@
@interface
ShoppingViewController
:
BaseViewController
/**
* 结算按钮
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
settlementButton
;
/**
* 合计金额
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
totalpriceLabe
;
/**
* 合计数量
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
totalNumbersLabe
;
/**
* 全选
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
allSelectedButton
;
@end
Lighting/Class/Shoppingcart/ShoppingViewController.m
View file @
5437c3e6
...
...
@@ -7,20 +7,96 @@
//
#import "ShoppingViewController.h"
#import "ShoppingTableViewCell.h"
#import "AppDelegate.h"
@interface
ShoppingViewController
()
<
UITableViewDelegate
,
UITableViewDataSource
>
@interface
ShoppingViewController
()
@property
(
weak
,
nonatomic
)
IBOutlet
UITableView
*
shoppingTableview
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
datasArray
;
@end
@implementation
ShoppingViewController
/**
* 数据源
*/
-
(
NSMutableArray
*
)
datasArray
{
if
(
_datasArray
==
nil
)
{
_datasArray
=
[
NSMutableArray
array
];
}
return
_datasArray
;
}
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
// Do any additional setup after loading the view.
[
self
uiConfigAction
];
}
#pragma mark - UI
-
(
void
)
uiConfigAction
{
self
.
shoppingTableview
.
dataSource
=
self
;
self
.
shoppingTableview
.
delegate
=
self
;
self
.
shoppingTableview
.
tableFooterView
=
[
UIView
new
];
}
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
ShoppingTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"Shopping"
forIndexPath
:
indexPath
];
return
cell
;
}
-
(
NSInteger
)
tableView
:
(
UITableView
*
)
tableView
numberOfRowsInSection
:
(
NSInteger
)
section
{
return
20
;
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
return
80
;
}
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didDeselectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
[
self
.
shoppingTableview
deselectRowAtIndexPath
:
indexPath
animated
:
YES
];
}
#pragma mark -结算
-
(
IBAction
)
settlementButtonClick
:
(
UIButton
*
)
sender
{
}
#pragma mark -全选
-
(
IBAction
)
allSelectedButtonClick
:
(
id
)
sender
{
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
...
...
Lighting/Class/Tabbar/CustomTabbarController.m
View file @
5437c3e6
...
...
@@ -9,33 +9,86 @@
#import "CustomTabbarController.h"
#import "Toolview.h"
#import "ClientViewController.h"
@interface
CustomTabbarController
()
@interface
CustomTabbarController
()
<
TabbarButtonClickdelegate
>
@property
(
nonatomic
,
strong
)
NSArray
*
identifierArray
;
@property
(
nonatomic
,
strong
)
NSArray
*
controllerArray
;
@end
@implementation
CustomTabbarController
/**
* UIStoryboard Identifier数组
*
* @return NSArary
*/
-
(
NSArray
*
)
identifierArray
{
if
(
_identifierArray
==
nil
)
{
_identifierArray
=
[
NSArray
arrayWithObjects
:
@"shopping"
,
@"Client"
,
nil
];
}
return
_identifierArray
;
}
-
(
NSArray
*
)
controllerArray
{
if
(
_controllerArray
==
nil
)
{
_controllerArray
=
[
NSArray
arrayWithObjects
:
@"ShoppingViewController"
,
@"ClientViewController"
,
nil
];
}
return
_controllerArray
;
}
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
// Do any additional setup after loading the view.
[
self
uiConfigAction
];
[
self
addViewcontroller
];
}
#pragma mark -UI
-
(
void
)
uiConfigAction
{
self
.
tabBar
.
frame
=
CGRectMake
(
Zero
,
Zero
,
ScreenWidth
,
NavigationHeight
);
Toolview
*
toolview
=
[[
Toolview
alloc
]
initWithFrame
:
CGRectMake
(
Zero
,
Zero
,
ScreenWidth
,
NavigationHeight
)];
toolview
.
delegate
=
self
;
[
self
.
tabBar
addSubview
:
toolview
];
}
#pragma mark -添加controller
-
(
void
)
addViewcontroller
{
UIStoryboard
*
storyboard
=
[
UIStoryboard
storyboardWithName
:
@"StoryboardwithCYX"
bundle
:
nil
];
ShoppingViewController
*
shoppingVC
=
[
storyboard
instantiateViewControllerWithIdentifier
:[
self
.
identifierArray
firstObject
]];
ClientViewController
*
clientVC
=
[
storyboard
instantiateViewControllerWithIdentifier
:[
self
.
identifierArray
objectAtIndex_opple
:
1
]];
NSArray
*
vcArray
=
[
NSArray
arrayWithObjects
:
clientVC
,
shoppingVC
,
nil
];
self
.
viewControllers
=
vcArray
;
}
#pragma amrk -TabbarButtonClickdelegate代理
-
(
void
)
ButtonClickAction
:
(
NSInteger
)
Buttontag
{
if
(
Buttontag
==
101
)
{
ClientViewController
*
client
=
[
storyboard
instantiateViewControllerWithIdentifier
:
@"Client"
];
UINavigationController
*
nav
=
[[
UINavigationController
alloc
]
initWithRootViewController
:
client
];
NSArray
*
arr
=
@[
nav
];
self
.
viewControllers
=
arr
;
self
.
selectedIndex
=
0
;
}
else
if
(
Buttontag
==
102
){
self
.
selectedIndex
=
1
;
}
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
...
...
Lighting/Class/Tabbar/Toolview.h
View file @
5437c3e6
...
...
@@ -8,6 +8,25 @@
#import <UIKit/UIKit.h>
@protocol
TabbarButtonClickdelegate
<
NSObject
>
@required
/**
* 点击按钮回调
*/
-
(
void
)
ButtonClickAction
:
(
NSInteger
)
Buttontag
;
@end
@interface
Toolview
:
UIView
@property
(
nonatomic
,
assign
)
id
<
TabbarButtonClickdelegate
>
delegate
;
/**
* 下划线
*/
@property
(
nonatomic
,
strong
)
UIView
*
underlineView
;
@end
Lighting/Class/Tabbar/Toolview.m
View file @
5437c3e6
...
...
@@ -37,19 +37,64 @@
#pragma mark -布局
-
(
void
)
uiConfigAction
{
for
(
int
i
=
1
;
i
<
5
;
i
++
)
{
//阴影
self
.
layer
.
shadowColor
=
[
UIColor
blackColor
].
CGColor
;
self
.
layer
.
shadowRadius
=
6
;
self
.
layer
.
shadowOpacity
=
0
.
8
;
//图标
UIImageView
*
iconImage
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
50
,
10
,
100
,
45
)];
iconImage
.
image
=
TCImage
(
@"weibo"
);
[
self
addSubview
:
iconImage
];
//输入框
UITextField
*
inputField
=
[[
UITextField
alloc
]
initWithFrame
:
CGRectMake
(
200
,
(
NavigationHeight
-
35
)
/
2
,
300
,
35
)];
inputField
.
borderStyle
=
UITextBorderStyleNone
;
inputField
.
backgroundColor
=
[
UIColor
grayColor
];
inputField
.
placeholder
=
@"请输入关键字"
;
[
self
addSubview
:
inputField
];
//按钮
NSArray
*
titleArray
=
[
NSArray
arrayWithObjects
:
@"某某用户"
,
@"我的客户"
,
@"购物车"
,
nil
];
for
(
int
i
=
1
;
i
<
4
;
i
++
)
{
CustomButton
*
button
=
[
CustomButton
buttonWithType
:
UIButtonTypeCustom
];
button
.
frame
=
CGRectMake
(
ScreenWidth
-
(
i
*
ButtonWIDTH
+
Buttoninterval
*
(
i
-
1
)),
10
,
ButtonWIDTH
,
ButtonRIGHT
);
[
button
setTitleColor
:[
UIColor
redColor
]
forState
:
UIControlStateNormal
];
[
button
setTitle
:
@"购物车"
forState
:
UIControlStateNormal
];
[
button
setTitle
:[
titleArray
objectAtIndex_opple
:
i
-
1
]
forState
:
UIControlStateNormal
];
button
.
tag
=
100
+
i
-
1
;
[
button
addTarget
:
self
action
:
@selector
(
ButtonClick
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
button
.
instructionsNumber
=
i
;
[
button
setImage
:
TCImage
(
@"qq"
)
forState
:
UIControlStateNormal
];
[
self
addSubview
:
button
];
//创建下划线
if
(
i
==
2
)
{
self
.
underlineView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
button
.
frame
.
origin
.
x
+
(
ButtonWIDTH
-
50
)
/
2
,
ButtonRIGHT
+
9
,
50
,
1
)];
_underlineView
.
backgroundColor
=
[
UIColor
redColor
];
[
self
addSubview
:
self
.
underlineView
];
}
}
}
#pragma mark -按钮事件响应
-
(
void
)
ButtonClick
:
(
UIButton
*
)
button
{
//下划线动画
[
UIView
animateWithDuration
:
0
.
2
animations
:
^
{
self
.
underlineView
.
frame
=
CGRectMake
(
button
.
frame
.
origin
.
x
+
(
ButtonWIDTH
-
50
)
/
2
,
ButtonRIGHT
+
9
,
50
,
1
);
}];
//点击代理
if
([
self
.
delegate
respondsToSelector
:
@selector
(
ButtonClickAction
:)])
{
[
self
.
delegate
ButtonClickAction
:
button
.
tag
];
}
}
...
...
Lighting/Lighting.xcodeproj/project.pbxproj
View file @
5437c3e6
...
...
@@ -14,6 +14,12 @@
2928F83B1CD0A0CE0036D761
/* CustomTabbarController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2928F83A1CD0A0CE0036D761
/* CustomTabbarController.m */
;
};
2928F83D1CD0A9CD0036D761
/* qq.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2928F83C1CD0A9CD0036D761
/* qq.png */
;
};
2928F8421CD0ABAC0036D761
/* ShoppingViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2928F8411CD0ABAC0036D761
/* ShoppingViewController.m */
;
};
2933934F1CD3158B000D997B
/* instructionsLabe.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2933934E1CD3158B000D997B
/* instructionsLabe.m */
;
};
293393551CD3379E000D997B
/* ShoppingTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
293393541CD3379E000D997B
/* ShoppingTableViewCell.m */
;
};
293393591CD3563C000D997B
/* CustomerdetailsController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
293393581CD3563C000D997B
/* CustomerdetailsController.m */
;
};
2949BABD1CD2EFA00049385A
/* InformationTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2949BABC1CD2EFA00049385A
/* InformationTableViewCell.m */
;
};
2949BAC21CD3055A0049385A
/* MMExampleDrawerVisualStateManager.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2949BAC11CD3055A0049385A
/* MMExampleDrawerVisualStateManager.m */
;
};
2949BAC41CD3086F0049385A
/* weibo.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2949BAC31CD3086F0049385A
/* weibo.png */
;
};
2962D06D1CD1A43A0058829D
/* ClientViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2962D06C1CD1A43A0058829D
/* ClientViewController.m */
;
};
2962D0711CD1A58B0058829D
/* RightViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2962D0701CD1A58B0058829D
/* RightViewController.m */
;
};
2962D0791CD1CBC60058829D
/* NetworkRequestClassManager.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2962D0781CD1CBC60058829D
/* NetworkRequestClassManager.m */
;
};
...
...
@@ -51,6 +57,17 @@
2928F83C1CD0A9CD0036D761
/* qq.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
path
=
qq.png
;
sourceTree
=
"<group>"
;
};
2928F8401CD0ABAC0036D761
/* ShoppingViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ShoppingViewController.h
;
sourceTree
=
"<group>"
;
};
2928F8411CD0ABAC0036D761
/* ShoppingViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ShoppingViewController.m
;
sourceTree
=
"<group>"
;
};
2933934D1CD3158B000D997B
/* instructionsLabe.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
instructionsLabe.h
;
sourceTree
=
"<group>"
;
};
2933934E1CD3158B000D997B
/* instructionsLabe.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
instructionsLabe.m
;
sourceTree
=
"<group>"
;
};
293393531CD3379E000D997B
/* ShoppingTableViewCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ShoppingTableViewCell.h
;
sourceTree
=
"<group>"
;
};
293393541CD3379E000D997B
/* ShoppingTableViewCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ShoppingTableViewCell.m
;
sourceTree
=
"<group>"
;
};
293393571CD3563C000D997B
/* CustomerdetailsController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
CustomerdetailsController.h
;
sourceTree
=
"<group>"
;
};
293393581CD3563C000D997B
/* CustomerdetailsController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
CustomerdetailsController.m
;
sourceTree
=
"<group>"
;
};
2949BABB1CD2EFA00049385A
/* InformationTableViewCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
InformationTableViewCell.h
;
sourceTree
=
"<group>"
;
};
2949BABC1CD2EFA00049385A
/* InformationTableViewCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
InformationTableViewCell.m
;
sourceTree
=
"<group>"
;
};
2949BAC01CD3055A0049385A
/* MMExampleDrawerVisualStateManager.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
MMExampleDrawerVisualStateManager.h
;
sourceTree
=
"<group>"
;
};
2949BAC11CD3055A0049385A
/* MMExampleDrawerVisualStateManager.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
MMExampleDrawerVisualStateManager.m
;
sourceTree
=
"<group>"
;
};
2949BAC31CD3086F0049385A
/* weibo.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
path
=
weibo.png
;
sourceTree
=
"<group>"
;
};
2962D06B1CD1A43A0058829D
/* ClientViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ClientViewController.h
;
sourceTree
=
"<group>"
;
};
2962D06C1CD1A43A0058829D
/* ClientViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ClientViewController.m
;
sourceTree
=
"<group>"
;
};
2962D06F1CD1A58B0058829D
/* RightViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
RightViewController.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -98,6 +115,7 @@
2928F7DD1CD085430036D761
/* Class */
=
{
isa
=
PBXGroup
;
children
=
(
293393561CD35608000D997B
/* Customerdetails */
,
2962D06E1CD1A56B0058829D
/* RIghtVC */
,
2962D06A1CD1A3FE0058829D
/* MyClient */
,
2928F83F1CD0AB830036D761
/* Shoppingcart */
,
...
...
@@ -113,12 +131,14 @@
2928F7DE1CD085430036D761
/* Tools */
=
{
isa
=
PBXGroup
;
children
=
(
2949BABF1CD305340049385A
/* MMDrawerManager */
,
2962D0821CD1EA350058829D
/* 1.jpg */
,
2962D0831CD1EA350058829D
/* 2.jpg */
,
2962D0841CD1EA350058829D
/* 3.jpg */
,
2962D0851CD1EA350058829D
/* 4.jpg */
,
2962D0861CD1EA350058829D
/* 5.jpg */
,
2962D0871CD1EA350058829D
/* 6.jpg */
,
2949BAC31CD3086F0049385A
/* weibo.png */
,
2962D07E1CD1E5DD0058829D
/* UIView+Frame */
,
2962D07A1CD1E3CC0058829D
/* NSarray+category */
,
2962D0761CD1CB860058829D
/* NetworkRequest */
,
...
...
@@ -201,22 +221,79 @@
2928F8361CD09E730036D761
/* CustomButton.h */
,
2928F8371CD09E730036D761
/* CustomButton.m */
,
2928F83C1CD0A9CD0036D761
/* qq.png */
,
2933934D1CD3158B000D997B
/* instructionsLabe.h */
,
2933934E1CD3158B000D997B
/* instructionsLabe.m */
,
);
name
=
CustomButton
;
sourceTree
=
"<group>"
;
};
2928F83F1CD0AB830036D761
/* Shoppingcart */
=
{
isa
=
PBXGroup
;
children
=
(
293393521CD3377E000D997B
/* view */
,
293393501CD329EC000D997B
/* controller */
,
);
path
=
Shoppingcart
;
sourceTree
=
"<group>"
;
};
293393501CD329EC000D997B
/* controller */
=
{
isa
=
PBXGroup
;
children
=
(
2928F8401CD0ABAC0036D761
/* ShoppingViewController.h */
,
2928F8411CD0ABAC0036D761
/* ShoppingViewController.m */
,
);
path
=
Shoppingcart
;
name
=
controller
;
sourceTree
=
"<group>"
;
};
293393521CD3377E000D997B
/* view */
=
{
isa
=
PBXGroup
;
children
=
(
293393531CD3379E000D997B
/* ShoppingTableViewCell.h */
,
293393541CD3379E000D997B
/* ShoppingTableViewCell.m */
,
);
name
=
view
;
sourceTree
=
"<group>"
;
};
293393561CD35608000D997B
/* Customerdetails */
=
{
isa
=
PBXGroup
;
children
=
(
293393571CD3563C000D997B
/* CustomerdetailsController.h */
,
293393581CD3563C000D997B
/* CustomerdetailsController.m */
,
);
name
=
Customerdetails
;
sourceTree
=
"<group>"
;
};
2949BABA1CD2EF800049385A
/* view */
=
{
isa
=
PBXGroup
;
children
=
(
2949BABB1CD2EFA00049385A
/* InformationTableViewCell.h */
,
2949BABC1CD2EFA00049385A
/* InformationTableViewCell.m */
,
);
name
=
view
;
sourceTree
=
"<group>"
;
};
2949BABE1CD2F1FE0049385A
/* controller */
=
{
isa
=
PBXGroup
;
children
=
(
2962D06F1CD1A58B0058829D
/* RightViewController.h */
,
2962D0701CD1A58B0058829D
/* RightViewController.m */
,
);
name
=
controller
;
sourceTree
=
"<group>"
;
};
2949BABF1CD305340049385A
/* MMDrawerManager */
=
{
isa
=
PBXGroup
;
children
=
(
2949BAC01CD3055A0049385A
/* MMExampleDrawerVisualStateManager.h */
,
2949BAC11CD3055A0049385A
/* MMExampleDrawerVisualStateManager.m */
,
);
name
=
MMDrawerManager
;
sourceTree
=
"<group>"
;
};
2962D06A1CD1A3FE0058829D
/* MyClient */
=
{
isa
=
PBXGroup
;
children
=
(
2949BABA1CD2EF800049385A
/* view */
,
29807C661CD20F3100F111B8
/* Controller */
,
);
name
=
MyClient
;
...
...
@@ -225,8 +302,7 @@
2962D06E1CD1A56B0058829D
/* RIghtVC */
=
{
isa
=
PBXGroup
;
children
=
(
2962D06F1CD1A58B0058829D
/* RightViewController.h */
,
2962D0701CD1A58B0058829D
/* RightViewController.m */
,
2949BABE1CD2F1FE0049385A
/* controller */
,
);
name
=
RIghtVC
;
sourceTree
=
"<group>"
;
...
...
@@ -397,6 +473,7 @@
2962D08C1CD1EA350058829D
/* 5.jpg in Resources */
,
29807C621CD20C2A00F111B8
/* Images.xcassets in Resources */
,
2962D08D1CD1EA350058829D
/* 6.jpg in Resources */
,
2949BAC41CD3086F0049385A
/* weibo.png in Resources */
,
2928F83D1CD0A9CD0036D761
/* qq.png in Resources */
,
29706DB41CD082990003C412
/* Assets.xcassets in Resources */
,
29706DAF1CD082990003C412
/* Main.storyboard in Resources */
,
...
...
@@ -461,17 +538,22 @@
buildActionMask
=
2147483647
;
files
=
(
2928F8381CD09E730036D761
/* CustomButton.m in Sources */
,
293393551CD3379E000D997B
/* ShoppingTableViewCell.m in Sources */
,
2949BAC21CD3055A0049385A
/* MMExampleDrawerVisualStateManager.m in Sources */
,
2928F8421CD0ABAC0036D761
/* ShoppingViewController.m in Sources */
,
2928F7E71CD087FE0036D761
/* BaseViewController.m in Sources */
,
2962D0791CD1CBC60058829D
/* NetworkRequestClassManager.m in Sources */
,
2928F8321CD09E320036D761
/* Toolview.m in Sources */
,
2933934F1CD3158B000D997B
/* instructionsLabe.m in Sources */
,
2962D0711CD1A58B0058829D
/* RightViewController.m in Sources */
,
29706DA91CD082990003C412
/* AppDelegate.m in Sources */
,
29706DA61CD082990003C412
/* main.m in Sources */
,
2962D07D1CD1E4490058829D
/* NSArray+Objectwithindex.m in Sources */
,
2949BABD1CD2EFA00049385A
/* InformationTableViewCell.m in Sources */
,
29706DB21CD082990003C412
/* Lighting.xcdatamodeld in Sources */
,
2962D0811CD1E6010058829D
/* UIView+Frame.m in Sources */
,
2928F83B1CD0A0CE0036D761
/* CustomTabbarController.m in Sources */
,
293393591CD3563C000D997B
/* CustomerdetailsController.m in Sources */
,
2928F8241CD09B2C0036D761
/* LoginViewController.m in Sources */
,
2962D06D1CD1A43A0058829D
/* ClientViewController.m in Sources */
,
);
...
...
@@ -589,13 +671,45 @@
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
=
"Brand Assets"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Tools/PrefixHeader.pch"
;
INFOPLIST_FILE
=
Lighting/Info.plist
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
OTHER_LDFLAGS
=
(
"$(inherited)"
,
"-ObjC"
,
"-l\"AFNetworking\""
,
"-l\"IQKeyboardManager\""
,
"-l\"MBProgressHUD\""
,
"-l\"MJExtension\""
,
"-l\"MJRefresh\""
,
"-l\"MMDrawerController\""
,
"-l\"Masonry\""
,
"-l\"SDWebImage\""
,
"-l\"SVProgressHUD\""
,
"-framework"
,
"\"CoreGraphics\""
,
"-framework"
,
"\"Foundation\""
,
"-framework"
,
"\"ImageIO\""
,
"-framework"
,
"\"MobileCoreServices\""
,
"-framework"
,
"\"QuartzCore\""
,
"-framework"
,
"\"Security\""
,
"-framework"
,
"\"SystemConfiguration\""
,
"-framework"
,
"\"UIKit\""
,
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.Lighting.cn
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
};
name
=
Debug
;
...
...
@@ -606,13 +720,45 @@
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
=
"Brand Assets"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Tools/PrefixHeader.pch"
;
INFOPLIST_FILE
=
Lighting/Info.plist
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
OTHER_LDFLAGS
=
(
"$(inherited)"
,
"-ObjC"
,
"-l\"AFNetworking\""
,
"-l\"IQKeyboardManager\""
,
"-l\"MBProgressHUD\""
,
"-l\"MJExtension\""
,
"-l\"MJRefresh\""
,
"-l\"MMDrawerController\""
,
"-l\"Masonry\""
,
"-l\"SDWebImage\""
,
"-l\"SVProgressHUD\""
,
"-framework"
,
"\"CoreGraphics\""
,
"-framework"
,
"\"Foundation\""
,
"-framework"
,
"\"ImageIO\""
,
"-framework"
,
"\"MobileCoreServices\""
,
"-framework"
,
"\"QuartzCore\""
,
"-framework"
,
"\"Security\""
,
"-framework"
,
"\"SystemConfiguration\""
,
"-framework"
,
"\"UIKit\""
,
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.Lighting.cn
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
};
name
=
Release
;
...
...
Lighting/Lighting/AppDelegate.h
View file @
5437c3e6
...
...
@@ -17,12 +17,19 @@
@property
(
readonly
,
strong
,
nonatomic
)
NSManagedObjectModel
*
managedObjectModel
;
@property
(
readonly
,
strong
,
nonatomic
)
NSPersistentStoreCoordinator
*
persistentStoreCoordinator
;
/**
* 网络状态
*/
@property
(
nonatomic
,
assign
)
BOOL
Networkstatus
;
/**
* 抽屉控制器对象
*/
@property
(
nonatomic
,
strong
)
MMDrawerController
*
mmdrawer
;
-
(
void
)
saveContext
;
-
(
NSURL
*
)
applicationDocumentsDirectory
;
...
...
Lighting/Lighting/StoryboardwithCYX.storyboard
View file @
5437c3e6
...
...
@@ -13,7 +13,7 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
id=
"laV-XF-HtJ"
>
<rect
key=
"frame"
x=
"24"
y=
"8
7
"
width=
"721"
height=
"176"
/>
<rect
key=
"frame"
x=
"24"
y=
"8
8
"
width=
"721"
height=
"176"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"05产品库-详情_03"
id=
"3z6-rk-Y7U"
>
...
...
@@ -41,16 +41,17 @@
<color
key=
"textColor"
cocoaTouchSystemColor=
"darkTextColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
id=
"b7A-ZK-29E"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"b7A-ZK-29E"
>
<rect
key=
"frame"
x=
"202"
y=
"136"
width=
"162"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.34901960784313724"
green=
"0.67450980392156867"
blue=
"0.86274509803921573"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"15"
/>
<state
key=
"normal"
title=
"添加客户信息"
/>
<state
key=
"normal"
title=
"添加客户信息"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"手机号码"
textAlignment=
"
natural
"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"vbb-DA-bo7"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"手机号码"
textAlignment=
"
center
"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"vbb-DA-bo7"
>
<rect
key=
"frame"
x=
"376"
y=
"18"
width=
"65"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxY=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMax
X=
"YES"
flexibleMax
Y=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
cocoaTouchSystemColor=
"darkTextColor"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -71,7 +72,7 @@
</textField>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
textAlignment=
"natural"
minimumFontSize=
"17"
id=
"a3F-gE-P6u"
>
<rect
key=
"frame"
x=
"441"
y=
"13"
width=
"148"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxY=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.93725490196078431"
green=
"0.93725490196078431"
blue=
"0.93725490196078431"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
...
...
@@ -83,6 +84,14 @@
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"gqt-0u-okD"
>
<rect
key=
"frame"
x=
"392"
y=
"136"
width=
"162"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.34901960780000002"
green=
"0.67450980390000004"
blue=
"0.86274509799999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<state
key=
"normal"
title=
"更改客户信息"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
</button>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
...
...
@@ -90,10 +99,107 @@
<rect
key=
"frame"
x=
"24"
y=
"293"
width=
"721"
height=
"711"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"
44
"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
id=
"aBb-qy-eKb"
>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"
100
"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
id=
"aBb-qy-eKb"
>
<rect
key=
"frame"
x=
"0.0"
y=
"57"
width=
"721"
height=
"654"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
reuseIdentifier=
"information"
rowHeight=
"100"
id=
"enD-yh-8KO"
customClass=
"InformationTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"721"
height=
"100"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"enD-yh-8KO"
id=
"NjH-im-dR0"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"721"
height=
"99.5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"05产品库-详情_03"
id=
"1EH-hQ-lSU"
>
<rect
key=
"frame"
x=
"13"
y=
"14"
width=
"77"
height=
"75"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"客户名称:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"WWT-lY-TDU"
>
<rect
key=
"frame"
x=
"109"
y=
"14"
width=
"65"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
cocoaTouchSystemColor=
"darkTextColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"联系电话:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"27w-yD-aSe"
>
<rect
key=
"frame"
x=
"109"
y=
"40"
width=
"65"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
cocoaTouchSystemColor=
"darkTextColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"最近到访时间:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"aVW-C6-c91"
>
<rect
key=
"frame"
x=
"109"
y=
"68"
width=
"90"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
cocoaTouchSystemColor=
"darkTextColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"服务导购:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"X1q-3T-uhp"
>
<rect
key=
"frame"
x=
"374"
y=
"14"
width=
"65"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
cocoaTouchSystemColor=
"darkTextColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"客户地址:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"pbo-bz-S5a"
>
<rect
key=
"frame"
x=
"374"
y=
"40"
width=
"65"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
cocoaTouchSystemColor=
"darkTextColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<switch
opaque=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"750"
verticalHuggingPriority=
"750"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
id=
"Mhf-SN-2iQ"
>
<rect
key=
"frame"
x=
"643"
y=
"9"
width=
"51"
height=
"31"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxY=
"YES"
/>
</switch>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"7Hk-8W-3Nw"
>
<rect
key=
"frame"
x=
"181"
y=
"14"
width=
"176"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.39892781040000003"
blue=
"0.50448872310000004"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"705-kK-9dn"
>
<rect
key=
"frame"
x=
"181"
y=
"41"
width=
"176"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.39892781040000003"
blue=
"0.50448872310000004"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"ayD-2z-ZRi"
>
<rect
key=
"frame"
x=
"205"
y=
"68"
width=
"176"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.39892781040000003"
blue=
"0.50448872310000004"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"7ow-eJ-UT1"
>
<rect
key=
"frame"
x=
"441"
y=
"14"
width=
"176"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.39892781040000003"
blue=
"0.50448872310000004"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"cpR-S6-Ss5"
>
<rect
key=
"frame"
x=
"441"
y=
"40"
width=
"176"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.39892781040000003"
blue=
"0.50448872310000004"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
red=
"0.56470588239999997"
green=
"0.75686274509999996"
blue=
"0.1960784314"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</tableViewCellContentView>
<color
key=
"backgroundColor"
red=
"0.56470588239999997"
green=
"0.75686274509999996"
blue=
"0.1960784314"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</tableViewCell>
</prototypes>
</tableView>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
...
...
@@ -110,10 +216,345 @@
</view>
<navigationItem
key=
"navigationItem"
id=
"CGP-HQ-YF5"
/>
<simulatedScreenMetrics
key=
"simulatedDestinationMetrics"
/>
<connections>
<outlet
property=
"addpersonInformationButton"
destination=
"b7A-ZK-29E"
id=
"Uqe-nG-4kH"
/>
<outlet
property=
"changePersonInformationButton"
destination=
"gqt-0u-okD"
id=
"Ndc-hK-XK0"
/>
<outlet
property=
"companyNameField"
destination=
"TV1-T3-a8p"
id=
"DiF-es-3b0"
/>
<outlet
property=
"customerAddress"
destination=
"0QQ-Iv-hqR"
id=
"b7X-i5-2Ae"
/>
<outlet
property=
"customerNameField"
destination=
"RkM-wZ-Ve3"
id=
"eqI-Bh-eyW"
/>
<outlet
property=
"informationTableview"
destination=
"aBb-qy-eKb"
id=
"vbs-eB-y1x"
/>
<outlet
property=
"phoneNumberField"
destination=
"a3F-gE-P6u"
id=
"AwL-qU-WXA"
/>
<outlet
property=
"searchPersonInformationField"
destination=
"UGf-5N-5E1"
id=
"Nlc-CD-J8n"
/>
</connections>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"X4y-1C-nSB"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
<point
key=
"canvasLocation"
x=
"1792"
y=
"457"
/>
<point
key=
"canvasLocation"
x=
"1784"
y=
"433"
/>
</scene>
<!--View Controller-->
<scene
sceneID=
"lDH-lU-tQw"
>
<objects>
<viewController
id=
"bkF-He-csg"
sceneMemberID=
"viewController"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"ifQ-Lu-e3W"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"1024"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
id=
"hWi-cZ-Zfb"
>
<rect
key=
"frame"
x=
"25"
y=
"88"
width=
"717"
height=
"130"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"05产品库-详情_03"
id=
"xzS-Yv-89h"
>
<rect
key=
"frame"
x=
"18"
y=
"15"
width=
"100"
height=
"100"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"客户名称:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"2dP-Zi-afh"
>
<rect
key=
"frame"
x=
"150"
y=
"15"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
cocoaTouchSystemColor=
"darkTextColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"公司名称:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"f6T-Ra-icS"
>
<rect
key=
"frame"
x=
"150"
y=
"44"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
cocoaTouchSystemColor=
"darkTextColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"客户地址:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"UrF-fO-arP"
>
<rect
key=
"frame"
x=
"150"
y=
"72"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
cocoaTouchSystemColor=
"darkTextColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"qXu-CL-F1I"
>
<rect
key=
"frame"
x=
"520"
y=
"68"
width=
"162"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.34901960780000002"
green=
"0.67450980390000004"
blue=
"0.86274509799999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<state
key=
"normal"
title=
"设为当前客户"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"手机号码:"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"rPr-vH-PlO"
>
<rect
key=
"frame"
x=
"437"
y=
"15"
width=
"72"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
cocoaTouchSystemColor=
"darkTextColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"4Qj-el-I8t"
>
<rect
key=
"frame"
x=
"230"
y=
"15"
width=
"143"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"上海市闵行区纪翟路红卫路"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"goj-ci-Q1u"
>
<rect
key=
"frame"
x=
"230"
y=
"72"
width=
"256"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"15121161964"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"RTc-dL-tif"
>
<rect
key=
"frame"
x=
"514"
y=
"15"
width=
"143"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"上海勾芒信息科技有限公司"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"g6c-Cl-Syb"
>
<rect
key=
"frame"
x=
"230"
y=
"44"
width=
"279"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</view>
</subviews>
<color
key=
"backgroundColor"
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
<navigationItem
key=
"navigationItem"
id=
"7Un-lz-aVD"
/>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"Kco-FP-wno"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
<point
key=
"canvasLocation"
x=
"1784"
y=
"1553"
/>
</scene>
<!--Shopping View Controller-->
<scene
sceneID=
"udz-xf-EQK"
>
<objects>
<viewController
storyboardIdentifier=
"shopping"
id=
"4Ho-ZE-RT8"
customClass=
"ShoppingViewController"
sceneMemberID=
"viewController"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"cxt-gf-RU0"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"1024"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
id=
"WYJ-n8-O3P"
>
<rect
key=
"frame"
x=
"25"
y=
"88"
width=
"717"
height=
"872"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
id=
"gHb-xr-WYA"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"717"
height=
"45"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"图片"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"vZJ-9v-787"
>
<rect
key=
"frame"
x=
"91"
y=
"12"
width=
"42"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"产品信息"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Dqe-yN-oaI"
>
<rect
key=
"frame"
x=
"188"
y=
"12"
width=
"73"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"吊牌价"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"JdY-FE-g8l"
>
<rect
key=
"frame"
x=
"286"
y=
"12"
width=
"64"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"15"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"成交价"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"TIg-G4-bZl"
>
<rect
key=
"frame"
x=
"392"
y=
"12"
width=
"49"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"15"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"数量"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Mql-Xc-fcI"
>
<rect
key=
"frame"
x=
"521"
y=
"12"
width=
"42"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"15"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"产品金额"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"3Rc-Gm-4Cs"
>
<rect
key=
"frame"
x=
"629"
y=
"12"
width=
"74"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"15"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"81"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
id=
"RJW-eG-Q3P"
>
<rect
key=
"frame"
x=
"0.0"
y=
"45"
width=
"717"
height=
"827"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
reuseIdentifier=
"Shopping"
rowHeight=
"80"
id=
"ZT1-XJ-ObI"
customClass=
"ShoppingTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"717"
height=
"80"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"ZT1-XJ-ObI"
id=
"GWp-Jl-7br"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"717"
height=
"79.5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"PkJ-eJ-ksY"
>
<rect
key=
"frame"
x=
"10"
y=
"25"
width=
"46"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<state
key=
"normal"
title=
"Button"
/>
<connections>
<action
selector=
"selectedButtonClick:"
destination=
"ZT1-XJ-ObI"
eventType=
"touchUpInside"
id=
"g4l-VU-RF4"
/>
</connections>
</button>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"05产品库-详情_03"
id=
"vCQ-e0-bdq"
>
<rect
key=
"frame"
x=
"74"
y=
"9"
width=
"77"
height=
"63.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"产品信息"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"hky-AF-07L"
>
<rect
key=
"frame"
x=
"189"
y=
"19"
width=
"73"
height=
"42.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.33333333333333331"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"¥5500"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"I7J-2T-5Gr"
>
<rect
key=
"frame"
x=
"281"
y=
"29"
width=
"73"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.33333333333333331"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
text=
"¥5500"
borderStyle=
"roundedRect"
textAlignment=
"natural"
minimumFontSize=
"17"
id=
"Q7k-hi-4Ks"
>
<rect
key=
"frame"
x=
"384"
y=
"25"
width=
"66"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
keyboardType=
"numberPad"
/>
</textField>
<button
opaque=
"NO"
tag=
"101"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"YVt-jQ-r0r"
>
<rect
key=
"frame"
x=
"556"
y=
"24"
width=
"30"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.97647058823529409"
green=
"0.95686274509803915"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<state
key=
"normal"
title=
"+"
/>
</button>
<button
opaque=
"NO"
tag=
"100"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"XcC-oP-Msd"
>
<rect
key=
"frame"
x=
"500"
y=
"24"
width=
"30"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.97647058823529409"
green=
"0.95686274509803915"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<state
key=
"normal"
title=
"-"
/>
<connections>
<action
selector=
"reduceAndaddButtonClick:"
destination=
"ZT1-XJ-ObI"
eventType=
"touchUpInside"
id=
"QbW-hx-wRj"
/>
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"1"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"i5D-XC-Vep"
>
<rect
key=
"frame"
x=
"524"
y=
"28"
width=
"37"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.33333333333333331"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"¥5500"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"EWn-0L-DXF"
>
<rect
key=
"frame"
x=
"603"
y=
"29"
width=
"106"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"1"
green=
"0.39892781040000003"
blue=
"0.50448872310000004"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
</tableViewCellContentView>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.70412693911356183"
blue=
"0.69044467628014605"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<connections>
<outlet
property=
"clinchTextfield"
destination=
"Q7k-hi-4Ks"
id=
"j4I-Qk-tZ8"
/>
<outlet
property=
"goodsImageView"
destination=
"vCQ-e0-bdq"
id=
"ahh-qu-JTs"
/>
<outlet
property=
"goodsInformationLabe"
destination=
"hky-AF-07L"
id=
"xxQ-En-W9t"
/>
<outlet
property=
"goodsNumbersLabe"
destination=
"i5D-XC-Vep"
id=
"I5i-h7-32d"
/>
<outlet
property=
"productPriceLabe"
destination=
"EWn-0L-DXF"
id=
"Mrh-Op-IW3"
/>
<outlet
property=
"selectedButton"
destination=
"PkJ-eJ-ksY"
id=
"9ay-3v-eHK"
/>
<outlet
property=
"tagsPriceLabe"
destination=
"I7J-2T-5Gr"
id=
"qXV-mY-jOw"
/>
</connections>
</tableViewCell>
</prototypes>
</tableView>
</subviews>
<color
key=
"backgroundColor"
red=
"0.0"
green=
"0.47843137250000001"
blue=
"1"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
<view
contentMode=
"scaleToFill"
id=
"JEe-lm-M0j"
>
<rect
key=
"frame"
x=
"25"
y=
"960"
width=
"717"
height=
"64"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMinY=
"YES"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"QOZ-rd-1Ea"
>
<rect
key=
"frame"
x=
"489"
y=
"10.5"
width=
"165"
height=
"42.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.34901960784313724"
green=
"0.67450980392156867"
blue=
"0.86274509803921573"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<state
key=
"normal"
title=
"去结算"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"settlementButtonClick:"
destination=
"4Ho-ZE-RT8"
eventType=
"touchUpInside"
id=
"fKm-sh-uSV"
/>
</connections>
</button>
<label
opaque=
"NO"
multipleTouchEnabled=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"全选"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"aGF-A2-Ikp"
>
<rect
key=
"frame"
x=
"60"
y=
"21"
width=
"32"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
multipleTouchEnabled=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"合计数量:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"ZMc-MD-SAt"
>
<rect
key=
"frame"
x=
"123"
y=
"21"
width=
"71"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
multipleTouchEnabled=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"3"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"BgH-qs-rZr"
>
<rect
key=
"frame"
x=
"202"
y=
"21"
width=
"45"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
multipleTouchEnabled=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"¥25600"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"SzO-sh-Q17"
>
<rect
key=
"frame"
x=
"326"
y=
"18"
width=
"144"
height=
"25"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"24"
/>
<color
key=
"textColor"
red=
"1"
green=
"0.39892781040000003"
blue=
"0.50448872310000004"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
multipleTouchEnabled=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"合计金额:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"lfY-O6-zCQ"
>
<rect
key=
"frame"
x=
"262"
y=
"21"
width=
"85"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
id=
"va8-YD-eVD"
>
<rect
key=
"frame"
x=
"6"
y=
"16"
width=
"46"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.39892781040000003"
blue=
"0.50448872310000004"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<state
key=
"normal"
title=
"Button"
/>
<connections>
<action
selector=
"allSelectedButtonClick:"
destination=
"4Ho-ZE-RT8"
eventType=
"touchUpInside"
id=
"aU8-Kr-NzZ"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
id=
"N1y-3D-mbG"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"717"
height=
"1"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMinY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.8666666666666667"
green=
"0.8666666666666667"
blue=
"0.8666666666666667"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</view>
</subviews>
<color
key=
"backgroundColor"
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
<navigationItem
key=
"navigationItem"
id=
"cYs-Sl-ibR"
/>
<connections>
<outlet
property=
"allSelectedButton"
destination=
"va8-YD-eVD"
id=
"QFT-8I-gC3"
/>
<outlet
property=
"settlementButton"
destination=
"QOZ-rd-1Ea"
id=
"eFY-bt-n2S"
/>
<outlet
property=
"shoppingTableview"
destination=
"RJW-eG-Q3P"
id=
"M5W-yO-xaT"
/>
<outlet
property=
"totalNumbersLabe"
destination=
"BgH-qs-rZr"
id=
"bP7-eQ-YNa"
/>
<outlet
property=
"totalpriceLabe"
destination=
"SzO-sh-Q17"
id=
"L5U-re-i18"
/>
</connections>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"zvu-bB-Abb"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
<point
key=
"canvasLocation"
x=
"1784"
y=
"-661"
/>
</scene>
<!--Navigation Controller-->
<scene
sceneID=
"vCr-Da-uFP"
>
...
...
@@ -133,6 +574,42 @@
</objects>
<point
key=
"canvasLocation"
x=
"812"
y=
"457"
/>
</scene>
<!--Navigation Controller-->
<scene
sceneID=
"S8f-Tg-Ung"
>
<objects>
<navigationController
automaticallyAdjustsScrollViewInsets=
"NO"
id=
"MEu-qw-Rl0"
sceneMemberID=
"viewController"
>
<toolbarItems/>
<navigationBar
key=
"navigationBar"
contentMode=
"scaleToFill"
id=
"GFC-77-d0a"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
</navigationBar>
<nil
name=
"viewControllers"
/>
<connections>
<segue
destination=
"4Ho-ZE-RT8"
kind=
"relationship"
relationship=
"rootViewController"
id=
"J6g-an-4OK"
/>
</connections>
</navigationController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"LKr-8P-9OJ"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
<point
key=
"canvasLocation"
x=
"818"
y=
"-661"
/>
</scene>
<!--Navigation Controller-->
<scene
sceneID=
"WNO-wu-2hJ"
>
<objects>
<navigationController
automaticallyAdjustsScrollViewInsets=
"NO"
id=
"9u3-0X-O7g"
sceneMemberID=
"viewController"
>
<toolbarItems/>
<navigationBar
key=
"navigationBar"
contentMode=
"scaleToFill"
id=
"iMf-eq-fts"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
</navigationBar>
<nil
name=
"viewControllers"
/>
<connections>
<segue
destination=
"bkF-He-csg"
kind=
"relationship"
relationship=
"rootViewController"
id=
"gey-Uf-jcU"
/>
</connections>
</navigationController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"Vdc-YD-wT5"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
<point
key=
"canvasLocation"
x=
"824"
y=
"1553"
/>
</scene>
</scenes>
<resources>
<image
name=
"05产品库-详情_03"
width=
"500"
height=
"375"
/>
...
...
Lighting/Tools/CustomButton.h
View file @
5437c3e6
...
...
@@ -10,4 +10,15 @@
@interface
CustomButton
:
UIButton
@property
(
nonatomic
,
strong
)
UILabel
*
instructions
;
/**
* 数量指示
*/
@property
(
nonatomic
,
assign
)
NSInteger
instructionsNumber
;
@end
Lighting/Tools/CustomButton.m
View file @
5437c3e6
...
...
@@ -7,11 +7,13 @@
//
#import "CustomButton.h"
#import "instructionsLabe.h"
#define WIDTH self.frame.size.width
@implementation
CustomButton
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
...
...
@@ -21,6 +23,7 @@
*/
-
(
instancetype
)
initWithFrame
:(
CGRect
)
frame
{
if
(
self
=
[
super
initWithFrame
:
frame
])
{
...
...
@@ -33,6 +36,26 @@
}
-
(
void
)
setInstructionsNumber
:(
NSInteger
)
instructionsNumber
{
_instructionsNumber
=
instructionsNumber
;
for
(
UIView
*
subview
in
self
.
subviews
)
{
if
([
subview
isKindOfClass
:[
instructionsLabe
class
]])
{
[
subview
removeFromSuperview
];
break
;
}
}
instructionsLabe
*
labe
=
[[
instructionsLabe
alloc
]
initWithFrame
:
CGRectMake
(
WIDTH
-
35
,
0
,
13
,
13
)];
labe
.
instructionsNumber
=
_instructionsNumber
;
[
self
addSubview
:
labe
];
}
-
(
CGRect
)
imageRectForContentRect
:(
CGRect
)
contentRect
{
return
CGRectMake
((
WIDTH
-
30
)
/
2
,
0
,
30
,
30
);
...
...
Lighting/Tools/MMExampleDrawerVisualStateManager.h
0 → 100755
View file @
5437c3e6
// Copyright (c) 2013 Mutual Mobile (http://mutualmobile.com/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import <Foundation/Foundation.h>
#import "MMDrawerVisualState.h"
typedef
NS_ENUM
(
NSInteger
,
MMDrawerAnimationType
){
MMDrawerAnimationTypeNone
,
MMDrawerAnimationTypeSlide
,
MMDrawerAnimationTypeSlideAndScale
,
MMDrawerAnimationTypeSwingingDoor
,
MMDrawerAnimationTypeParallax
,
};
@interface
MMExampleDrawerVisualStateManager
:
NSObject
@property
(
nonatomic
,
assign
)
MMDrawerAnimationType
leftDrawerAnimationType
;
@property
(
nonatomic
,
assign
)
MMDrawerAnimationType
rightDrawerAnimationType
;
+
(
MMExampleDrawerVisualStateManager
*
)
sharedManager
;
-
(
MMDrawerControllerDrawerVisualStateBlock
)
drawerVisualStateBlockForDrawerSide
:(
MMDrawerSide
)
drawerSide
;
@end
Lighting/Tools/MMExampleDrawerVisualStateManager.m
0 → 100755
View file @
5437c3e6
// Copyright (c) 2013 Mutual Mobile (http://mutualmobile.com/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import "MMExampleDrawerVisualStateManager.h"
#import <QuartzCore/QuartzCore.h>
@implementation
MMExampleDrawerVisualStateManager
+
(
MMExampleDrawerVisualStateManager
*
)
sharedManager
{
static
MMExampleDrawerVisualStateManager
*
_sharedManager
=
nil
;
static
dispatch_once_t
onceToken
;
dispatch_once
(
&
onceToken
,
^
{
_sharedManager
=
[[
MMExampleDrawerVisualStateManager
alloc
]
init
];
[
_sharedManager
setLeftDrawerAnimationType
:
MMDrawerAnimationTypeParallax
];
[
_sharedManager
setRightDrawerAnimationType
:
MMDrawerAnimationTypeParallax
];
});
return
_sharedManager
;
}
-
(
MMDrawerControllerDrawerVisualStateBlock
)
drawerVisualStateBlockForDrawerSide
:
(
MMDrawerSide
)
drawerSide
{
MMDrawerAnimationType
animationType
;
if
(
drawerSide
==
MMDrawerSideLeft
){
animationType
=
self
.
leftDrawerAnimationType
;
}
else
{
animationType
=
self
.
rightDrawerAnimationType
;
}
MMDrawerControllerDrawerVisualStateBlock
visualStateBlock
=
nil
;
switch
(
animationType
)
{
case
MMDrawerAnimationTypeSlide
:
visualStateBlock
=
[
MMDrawerVisualState
slideVisualStateBlock
];
break
;
case
MMDrawerAnimationTypeSlideAndScale
:
visualStateBlock
=
[
MMDrawerVisualState
slideAndScaleVisualStateBlock
];
break
;
case
MMDrawerAnimationTypeParallax
:
visualStateBlock
=
[
MMDrawerVisualState
parallaxVisualStateBlockWithParallaxFactor
:
2
.
0
];
break
;
case
MMDrawerAnimationTypeSwingingDoor
:
visualStateBlock
=
[
MMDrawerVisualState
swingingDoorVisualStateBlock
];
break
;
default
:
visualStateBlock
=
^
(
MMDrawerController
*
drawerController
,
MMDrawerSide
drawerSide
,
CGFloat
percentVisible
){
UIViewController
*
sideDrawerViewController
;
CATransform3D
transform
;
CGFloat
maxDrawerWidth
=
0
.
0
;
if
(
drawerSide
==
MMDrawerSideLeft
){
sideDrawerViewController
=
drawerController
.
leftDrawerViewController
;
maxDrawerWidth
=
drawerController
.
maximumLeftDrawerWidth
;
}
else
if
(
drawerSide
==
MMDrawerSideRight
){
sideDrawerViewController
=
drawerController
.
rightDrawerViewController
;
maxDrawerWidth
=
drawerController
.
maximumRightDrawerWidth
;
}
if
(
percentVisible
>
1
.
0
){
transform
=
CATransform3DMakeScale
(
percentVisible
,
1
.
f
,
1
.
f
);
if
(
drawerSide
==
MMDrawerSideLeft
){
transform
=
CATransform3DTranslate
(
transform
,
maxDrawerWidth
*
(
percentVisible
-
1
.
f
)
/
2
,
0
.
f
,
0
.
f
);
}
else
if
(
drawerSide
==
MMDrawerSideRight
){
transform
=
CATransform3DTranslate
(
transform
,
-
maxDrawerWidth
*
(
percentVisible
-
1
.
f
)
/
2
,
0
.
f
,
0
.
f
);
}
}
else
{
transform
=
CATransform3DIdentity
;
}
[
sideDrawerViewController
.
view
.
layer
setTransform
:
transform
];
};
break
;
}
return
visualStateBlock
;
}
@end
Lighting/Tools/PrefixHeader.pch
View file @
5437c3e6
...
...
@@ -15,6 +15,9 @@
#import "IQKeyboardManager.h"
#import "AFNetworking.h"
#import "NetworkRequestClassManager.h"
#import "NSArray+Objectwithindex.h"
#import "ShoppingViewController.h"
#import "ClientViewController.h"
// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
...
...
Lighting/Tools/instructionsLabe.h
0 → 100644
View file @
5437c3e6
//
// instructionsLabe.h
// Lighting
//
// Created by 曹云霄 on 16/4/29.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface
instructionsLabe
:
UILabel
/**
* 显示指示器的数量
*/
@property
(
nonatomic
,
assign
)
NSInteger
instructionsNumber
;
@end
Lighting/Tools/instructionsLabe.m
0 → 100644
View file @
5437c3e6
//
// instructionsLabe.m
// Lighting
//
// Created by 曹云霄 on 16/4/29.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "instructionsLabe.h"
@implementation
instructionsLabe
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
-
(
instancetype
)
initWithFrame
:(
CGRect
)
frame
{
if
(
self
=
[
super
initWithFrame
:
frame
])
{
self
.
layer
.
masksToBounds
=
YES
;
self
.
layer
.
cornerRadius
=
self
.
frame
.
size
.
width
/
2
;
self
.
backgroundColor
=
[
UIColor
redColor
];
self
.
textColor
=
[
UIColor
whiteColor
];
self
.
font
=
[
UIFont
systemFontOfSize
:
8
];
self
.
textAlignment
=
NSTextAlignmentCenter
;
}
return
self
;
}
-
(
void
)
setInstructionsNumber
:(
NSInteger
)
instructionsNumber
{
_instructionsNumber
=
instructionsNumber
;
self
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
_instructionsNumber
];
}
@end
Lighting/Tools/weibo.png
0 → 100755
View file @
5437c3e6
2.53 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment