Commit 586d2884 authored by 曹云霄's avatar 曹云霄

减少使用宏

parent c9cd889a
......@@ -715,11 +715,8 @@
- (void)DismissScreenView
{
[UIView animateWithDuration:0.2 animations:^{
self.screenView.alpha = 0;
}completion:^(BOOL finished) {
[self.screenView removeFromSuperview];
}];
}
......
......@@ -17,14 +17,6 @@
@implementation Toolview
/*
// 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
{
......@@ -82,7 +74,7 @@
[self addSubview:button];
//按钮
NSString *realName = [Shoppersmanager manager].Shoppers.employee.realName?[Shoppersmanager manager].Shoppers.employee.realName:@"服务导购";
NSString *realName = [[Shoppersmanager manager].Shoppers.employee.realName length]?[Shoppersmanager manager].Shoppers.employee.realName:@"服务导购";
NSArray *titleArray = [NSArray arrayWithObjects:@"功能菜单",realName,@"我的客户",@"购物袋", nil];
//图片
NSArray *imageArray = [NSArray arrayWithObjects:@"dial",@"矢量智能对象-1",@"data",@"ablum", nil];
......@@ -110,7 +102,7 @@
//刷新购物车数量 、直接赋值
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshGoodsNumber:) name:REFRESHSHOPPINGCAR object:nil];
//刷新购物车数量、加1
//刷新购物车数量
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(AddGoodsNumber:) name:@"ADDGOODSNUMBER" object:nil];
//更改用户名
......
......@@ -45,6 +45,7 @@
292A14311CE81D1D00EB4430 /* AddressModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 292A14301CE81D1D00EB4430 /* AddressModel.m */; };
2933934F1CD3158B000D997B /* instructionsLabe.m in Sources */ = {isa = PBXBuildFile; fileRef = 2933934E1CD3158B000D997B /* instructionsLabe.m */; };
293393551CD3379E000D997B /* ShoppingTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 293393541CD3379E000D997B /* ShoppingTableViewCell.m */; };
2934B0AB1DB4E1F1009CBAC4 /* CYConstManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 2934B0AA1DB4E1F1009CBAC4 /* CYConstManager.m */; };
29360C2F1CDDC47E002A5D89 /* ScreeningView.m in Sources */ = {isa = PBXBuildFile; fileRef = 29360C2E1CDDC47E002A5D89 /* ScreeningView.m */; };
29360C311CDDC487002A5D89 /* ScreeningView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 29360C301CDDC487002A5D89 /* ScreeningView.xib */; };
2936F28C1D014147007CA67C /* sceneScreeningCollectionViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2936F28B1D014147007CA67C /* sceneScreeningCollectionViewCell.m */; };
......@@ -229,6 +230,8 @@
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>"; };
2934B0A91DB4E1F1009CBAC4 /* CYConstManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CYConstManager.h; sourceTree = "<group>"; };
2934B0AA1DB4E1F1009CBAC4 /* CYConstManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CYConstManager.m; sourceTree = "<group>"; };
29360C2D1CDDC47E002A5D89 /* ScreeningView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScreeningView.h; sourceTree = "<group>"; };
29360C2E1CDDC47E002A5D89 /* ScreeningView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ScreeningView.m; sourceTree = "<group>"; };
29360C301CDDC487002A5D89 /* ScreeningView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ScreeningView.xib; sourceTree = "<group>"; };
......@@ -639,6 +642,7 @@
2928F7DE1CD085430036D761 /* Tools */ = {
isa = PBXGroup;
children = (
2934B0A81DB4E19C009CBAC4 /* CYConst */,
2916A7451D7039F600644C8C /* Uiview+category */,
29498C511D050DB3004FA79B /* UIImagePickerController */,
29F14B931CF6A4B50005D3E5 /* Scanner */,
......@@ -759,6 +763,15 @@
name = view;
sourceTree = "<group>";
};
2934B0A81DB4E19C009CBAC4 /* CYConst */ = {
isa = PBXGroup;
children = (
2934B0A91DB4E1F1009CBAC4 /* CYConstManager.h */,
2934B0AA1DB4E1F1009CBAC4 /* CYConstManager.m */,
);
name = CYConst;
sourceTree = "<group>";
};
2936F2861D014094007CA67C /* view */ = {
isa = PBXGroup;
children = (
......@@ -1695,6 +1708,7 @@
2928F83B1CD0A0CE0036D761 /* CustomTabbarController.m in Sources */,
29A9DCAE1CEB643C00A7567A /* PDFViewController.m in Sources */,
29EAAE8E1CDC3E8E00C4DBA2 /* BillingInfoView.m in Sources */,
2934B0AB1DB4E1F1009CBAC4 /* CYConstManager.m in Sources */,
29F14BAB1CF6B60D0005D3E5 /* QRViewController.m in Sources */,
29D260F81CEEAF2D00A9787D /* FullScreenViewCell.m in Sources */,
290887061CE58BC2000B7097 /* screeningButton.m in Sources */,
......
//
// CYConstManager.h
// Lighting
//
// Created by 曹云霄 on 2016/10/17.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface CYConstManager : NSObject
@end
//
// CYConstManager.m
// Lighting
//
// Created by 曹云霄 on 2016/10/17.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "CYConstManager.h"
/*****************************************接口地址*****************************************/
//** */
@implementation CYConstManager
@end
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