Commit 87973485 authored by Sandy's avatar Sandy

修改菜单图片

parent 75b250fa
......@@ -4284,7 +4284,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.xffruit;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "e2cec26c-3666-4512-9b9a-cdb4cd9da56d";
PROVISIONING_PROFILE = "";
USER_HEADER_SEARCH_PATHS = "${SRCROOT}/**";
};
name = Debug;
......@@ -4314,7 +4314,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.xffruit;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "e2cec26c-3666-4512-9b9a-cdb4cd9da56d";
PROVISIONING_PROFILE = "";
USER_HEADER_SEARCH_PATHS = "${SRCROOT}/**";
};
name = Release;
......
......@@ -137,7 +137,7 @@
}
#ifdef Demonstrate
#else
[self createSyncViewController];
[self createSyncViewController];
#endif
[self createSystemViewController];
......
......@@ -100,9 +100,21 @@
@"新建采购通知",@"查看采购通知", @"查看采购通知",
@"新建采购单",@"查看采购单", @"查看采购单", @"供应商确认采购单",//【供应商】",
@"新建发运单",@"查看发运单", @"查看发运单",
@"新加工单",@"查看加工单", @"查看加工单",
@"新加工单",@"查看加工单", @"查看加工单",
@"新建转运单", @"查看转运单", @"查看转运单",
@"查看收货单", @"查看收货单"];
#ifdef Demonstrate
NSArray *functionsImageName = @[@"notice",
@"demo_survey",@"demo_hangqingfankui", @"watch_surver",
@"demo_hangqingfankui",
@"demo_caigoutongzhi",@"watch_needs", @"watch_needs",
@"demo_xinjiancaigoudan",@"watch_purchase", @"watch_purchase", @"demo_querencaigoudan",
@"demo_xinjianfayundan",@"watch_transort", @"watch_transort",
@"demo_xinjianjiagongdan",@"demo_chakanjiagongdan", @"watch_process",
@"demo_xinjianzhuanyundan", @"demo_chakanzhuanyundan", @"demo_chakanzhuanyundan",
@"demo_chakanshouhuodan", @"demo_chakanshouhuodan" ];//收货单
#else
NSArray *functionsImageName = @[@"notice",
@"create_surver",@"watch_surver", @"watch_surver",
@"create_surver_result",
......@@ -112,6 +124,7 @@
@"create_process",@"watch_process", @"watch_process",
@"create_transfer", @"create_transfer", @"create_transfer",
@"create_transfer", @"create_transfer" ];//收货单
#endif
//NSArray *functionsSmallImgName = @[];
NSArray *functionItemTag = @[@(0),
......
......@@ -10,37 +10,35 @@
//@protocol ICRFuctionItemControlDelegate;
typedef NS_ENUM (NSUInteger, ICRFunctionID) {
typedef NS_ENUM(NSUInteger, ICRFunctionID) {
kFunctionNotice = 0, //公告
kFunctionNewSurvey, //新建行情调研 1
kFunctionSeeSurvey, //查看行情调研2
kFunctionNotice = 0, //公告
kFunctionNewSurvey, //新建行情调研 1
kFunctionSeeSurvey, //查看行情调研2
kFunctionFeedBackSurvey, //填写行情反馈3
kFunctionNewPurchaseNotice, //新建采购通知4
kFunctionSeePurchaseNotice, //查看采购通知5
kFunctionNewPurchase, // 新建采购单6
kFunctionSeePurchase, // 查看采购单7
kFunctionExaminePurchase, // 审核采购单【供应商】8
kFunctionNewShipment, // 新建发运单9
kFunctionSeeShipment, // 查看发运单10
kFunctionNewProcessing, // 新增加工单11
kFunctionSeeProcessing, // 查看加工单12
kFunctionNewTransfer, //新建转运单13
kFunctionSeeTransfer, //查看发运单14
kFunctionSeeReceive, //查看收货单15
kFunctionAnnouncement ,
kFunctionTaskManagement,
kFunctionPatrolPlan,
kFunctionMyShop,
kFunctionNavigation,
kFunctionComeShopReg,
kFunctionLeaveShopReg,
kFunctionCreatTask,
kFunctionHandleTask
kFunctionNewPurchaseNotice,//新建采购通知4
kFunctionSeePurchaseNotice,//查看采购通知5
kFunctionNewPurchase, // 新建采购单6
kFunctionSeePurchase, // 查看采购单7
kFunctionExaminePurchase, // 审核采购单【供应商】8
kFunctionNewShipment, // 新建发运单9
kFunctionSeeShipment, // 查看发运单10
kFunctionNewProcessing, // 新增加工单11
kFunctionSeeProcessing, // 查看加工单12
kFunctionNewTransfer, //新建转运单13
kFunctionSeeTransfer, //查看发运单14
kFunctionSeeReceive,//查看收货单15
kFunctionAnnouncement,
kFunctionTaskManagement,
kFunctionPatrolPlan,
kFunctionMyShop,
kFunctionNavigation,
kFunctionComeShopReg,
kFunctionLeaveShopReg,
kFunctionCreatTask,
kFunctionHandleTask
};
@interface ICRFunctionItemControl : UIControl
......
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "demo_caigoutongzhi.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "demo_caigoutongzhi@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "demo_caigoutongzhi@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "demo_chakanjiagongdan.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "demo_chakanjiagongdan@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "demo_chakanjiagongdan@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "demo_chakanshouhuodan.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "demo_chakanshouhuodan@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "demo_chakanshouhuodan@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "demo_chakanzhuanyundan.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "demo_chakanzhuanyundan@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "demo_chakanzhuanyundan@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "demo_hangqingfankui.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "demo_hangqingfankui@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "demo_hangqingfankui@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "demo_querencaigoudan.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "demo_querencaigoudan@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "demo_querencaigoudan@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "demo_survey.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "demo_survey@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "demo_survey@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "demo_xinjiancaigoudan.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "demo_xinjiancaigoudan@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "demo_xinjiancaigoudan@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "demo_xinjianfayundan.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "demo_xinjianfayundan@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "demo_xinjianfayundan@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "demo_xinjianjiagongdan.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "demo_xinjianjiagongdan@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "demo_xinjianjiagongdan@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "demo_xinjianzhuanyundan.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "demo_xinjianzhuanyundan@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "demo_xinjianzhuanyundan@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
......@@ -22,22 +22,23 @@
#define ICR_TABBAR_TINT_COLOR [UIColor colorWithR:36 g:38 b:53 a:1]
#define ICR_IMAGE_BG_COLOR [UIColor colorWithW:242 a:1]
#ifdef Demonstrate
//********演示环境*********
#define HTTP_REST_API_BASE_URL @"http://jdcg.demo.hd123.cn:7080/cruiser-server/rest"
#define HTTP_REST_REPORT_BASE_URL @"http://jdcg.demo.hd123.cn:7080"
#else
//********阿里云内部测试环境********
//#define HTTP_REST_API_BASE_URL @"http://218.244.151.129:7580/cruiser-server/rest"
//********测试环境********
//#define HTTP_REST_API_BASE_URL @"http://122.224.171.126:7280/cruiser-server/rest"
////********正式环境*********
//#define HTTP_REST_API_BASE_URL @"http://122.224.171.126:7380/cruiser-server/rest"
////
//#define HTTP_REST_REPORT_BASE_URL @"http://122.224.171.126:7380"
//********演示环境*********
#define HTTP_REST_API_BASE_URL @"http://jdcg.demo.hd123.cn:7080/cruiser-server/rest"
//
#define HTTP_REST_REPORT_BASE_URL @"http://jdcg.demo.hd123.cn:7080"
#define HTTP_REST_API_BASE_URL @"http://122.224.171.126:7380/cruiser-server/rest"
#define HTTP_REST_REPORT_BASE_URL @"http://122.224.171.126:7380"
#endif
// HTTP
//#define HTTP_REST_API_BASE_URL @"http://115.28.191.44:8080/IPatrol/rest"
......
......@@ -13,42 +13,41 @@
#import "SurveyViewController.h"
#import "ICRFunctionBaseView.h"
#import "ICRFunctionEntity.h"
#import "ICRFunctionBaseView.h"
#import "ICRFunctionEntity.h"
#import "NewPurchaseNoticeViewController.h"
#import "SeePurchaseNoticeViewController.h"
#import "NewPurchaseViewController.h"
#import "PurchaseViewController.h"
#import "NewTransportViewController.h"
#import "PurchaseNoticeViewController.h"
#import "PurchaseViewController.h"
#import "TransportViewController.h"
#import"PurchaseNoticeViewController.h"
#import "NewTransferViewController.h"
#import "TransferViewController.h"
#import "ReceiveViewController.h"
#import "TransferViewController.h"
#import "GXFFunctionDB.h"
#import "GXFNewProcessViewController.h"
#import "GXFListProcessViewController.h"
#import "GXFNewProcessViewController.h"
#import "GXFFunctionsViewController.h"
#import "GXFDisplayFunction.h"
#import "GXFFunction.h"
#import "GXFNoticeFunctionTableViewCell.h"
#import "GXFFunctionCollectionViewCell.h"
#import "GXFListProcessViewController.h"
#import "GXFFunctionDB.h"
#import "WriteFeedbackViewController.h"
#import "GXFFunctionDB.h"
#import "GXFFunctionsViewController.h"
#import "GXFListProcessViewController.h"
#import "GXFListProcessViewController.h"
#import "GXFNewProcessViewController.h"
#import "GXFNewProcessViewController.h"
#import "GXFNoticeFunctionTableViewCell.h"
#import "MarketSurveyViewController.h"
#import "ReceiveViewController.h"
#import "TransportViewController.h"
#import "NewTransferViewController.h"
#import "TransferViewController.h"
#import "NewTransportViewController.h"
@interface BusinessViewController ()<ICRFunctionBaseViewDelegate,UITableViewDataSource,UITableViewDelegate>
#import "ReceiveViewController.h"
#import "TransferViewController.h"
#import "TransportViewController.h"
#import "WriteFeedbackViewController.h"
@interface BusinessViewController () <ICRFunctionBaseViewDelegate, UITableViewDataSource, UITableViewDelegate>
@property (nonatomic, strong) ICRFunctionBaseView *c_functionBaseView;
@property (nonatomic, strong) UITableView *c_tableView;
......@@ -56,79 +55,80 @@
@implementation BusinessViewController
- (void)viewDidLoad {
- (void)viewDidLoad
{
[super viewDidLoad];
[self setupSubviews];
// self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"收货单" style:UIBarButtonItemStylePlain target:self action:@selector(receiveClick:)];
// self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"收货单" style:UIBarButtonItemStylePlain target:self action:@selector(receiveClick:)];
}
- (void)didReceiveMemoryWarning {
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (void)setupFunctionBaseView {
- (void)setupFunctionBaseView
{
NSMutableArray *funtionEntitlesArr = [NSMutableArray array];
NSArray *arrFunctions = [NSArray arrayWithArray:[[GXFFunctionDB sharedInstance] displayFunctionsHasPermission]];
for (GXFDisplayFunction *displayFunction in arrFunctions) {
ICRFunctionEntity *functionEntity = [[ICRFunctionEntity alloc]init];
ICRFunctionEntity *functionEntity = [[ICRFunctionEntity alloc] init];
functionEntity.functionName = displayFunction.functionName;
functionEntity.iconName = displayFunction.functionImgName;
functionEntity.functionItemTag = displayFunction.functionItemTag;
[funtionEntitlesArr addObject:functionEntity];
}
self.c_functionBaseView = [ICRFunctionBaseView initWithFunctionData:funtionEntitlesArr];
_c_functionBaseView.frame = (CGRect){
.origin.x = 0,
.origin.y =0,
.size.width = CGRectGetWidth(self.view.frame),
.size.height = _c_functionBaseView.height};//CGRectGetHeight(self.view.frame),};
_c_functionBaseView.frame = (CGRect){.origin.x = 0, .origin.y = 0, .size.width = CGRectGetWidth(self.view.frame), .size.height = _c_functionBaseView.height };// CGRectGetHeight(self.view.frame),};
_c_functionBaseView.backgroundColor = [UIColor clearColor];
_c_functionBaseView.m_delegate = self;
}
-(void)setupSubviews
- (void)setupSubviews
{
self.c_tableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, self.view.width, self.view.height - 64) style:UITableViewStyleGrouped];
self.c_tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, self.view.width, self.view.height - 64) style:UITableViewStyleGrouped];
self.c_tableView.delegate = self;
self.c_tableView.dataSource = self;
[self.view addSubview:_c_tableView];
[self setupFunctionBaseView];
[self setupFunctionBaseView];
}
#pragma UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
#pragma UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 1;
}
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
return 1;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
return _c_functionBaseView.height + 44 ;
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return _c_functionBaseView.height + 44;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *cellId = @"cellId";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
if (!cell) {
cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellId];
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellId];
}
[cell.contentView addSubview:_c_functionBaseView];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell;
}
#pragma mark - ICRFunctionBaseViewDelegate
- (void)ICRFunctionBaseView:(ICRFunctionItemControl *)imageView {
- (void)ICRFunctionBaseView:(ICRFunctionItemControl *)imageView
{
/*
kFunctionAnnouncement = 0,
kFunctionTaskManagement,
......@@ -140,130 +140,111 @@
{
ICRAnnouncementViewController *aVC = [[ICRAnnouncementViewController alloc] init];
[self PushViewController:aVC animated:YES];
}
break;
} break;
case kFunctionNewSurvey://新建行情
{
NewSurveyViewController *svc = [[NewSurveyViewController alloc] init];
svc.navTitle = @"新建行情调研";
[self PushViewController:svc animated:YES];
}
break;
case kFunctionFeedBackSurvey: //填写行情反馈3
} break;
case kFunctionFeedBackSurvey://填写行情反馈3
{
MarketSurveyViewController *marketSurveyVC = [[MarketSurveyViewController alloc] init];
marketSurveyVC.title = @"调研中";
//WriteFeedbackViewController *svc = [[WriteFeedbackViewController alloc] init];
// WriteFeedbackViewController *svc = [[WriteFeedbackViewController alloc] init];
[self PushViewController:marketSurveyVC animated:YES];
}
break;
} break;
case kFunctionSeeSurvey://查看行情
{
SurveyViewController *svc = [[SurveyViewController alloc] init];
svc.title = [IBTCommon localizableString:@"Survey"];
svc.navigationItem.hidesBackButton = YES;
[self PushViewController:svc animated:YES];
}
break;
} break;
case kFunctionNewPurchaseNotice://新建采购通知单
{
NewPurchaseNoticeViewController *svc = [[NewPurchaseNoticeViewController alloc] init];
svc.title = [IBTCommon localizableString:@"Survey2"];
[self PushViewController:svc animated:YES];
}
break;
} break;
case kFunctionSeePurchaseNotice://查看采购通知单
{
PurchaseNoticeViewController *svc =
[[PurchaseNoticeViewController alloc] init];
PurchaseNoticeViewController *svc = [[PurchaseNoticeViewController alloc] init];
svc.title = [IBTCommon localizableString:@"Survey3"];
[self PushViewController:svc animated:YES];
}
break;
} break;
case kFunctionNewPurchase://新建采购单
{
NewPurchaseViewController *nvc = [[NewPurchaseViewController alloc]init];
NewPurchaseViewController *nvc = [[NewPurchaseViewController alloc] init];
nvc.title = @"新建采购单";
[self PushViewController:nvc animated:YES];
}
break;
case kFunctionSeePurchase:{//查看采购单
PurchaseViewController *pvc = [[PurchaseViewController alloc]init];
} break;
case kFunctionSeePurchase: {//查看采购单
PurchaseViewController *pvc = [[PurchaseViewController alloc] init];
pvc.title = @"采购单";
[self PushViewController:pvc animated:YES];
}
break;
} break;
case kFunctionNewShipment://任务管理
{
NewTransportViewController *tVC = [[NewTransportViewController alloc] init];
tVC.title = @"新建发运单";
[self PushViewController:tVC animated:YES];
}
break;
} break;
case kFunctionSeeShipment://任务管理
{
TransportViewController *tVC = [[TransportViewController alloc] init];
tVC.title = @"发运单";
[self PushViewController:tVC animated:YES];
}
break;
} break;
case kFunctionExaminePurchase://供应商确认采购单
{
PurchaseViewController *tVC = [[PurchaseViewController alloc] init];
tVC.title = @"供应商确认采购单";
tVC.assessorVendor = [ICRUserUtil sharedInstance].userId;
[self PushViewController:tVC animated:YES];
}
break;
} break;
case kFunctionNewTransfer://新建转运单
{
NewTransferViewController *tVC = [[NewTransferViewController alloc] init];
tVC.title = @"新建转运单";
[self PushViewController:tVC animated:YES];
}
break;
} break;
case kFunctionSeeTransfer://转运单列表
{
TransferViewController *tVC = [[TransferViewController alloc] init];
tVC.title = @"转运单";
[self PushViewController:tVC animated:YES];
}
break;
case kFunctionNewProcessing:{
GXFNewProcessViewController *pvc = [[GXFNewProcessViewController alloc]init];
//pvc.title = @"采购单";
} break;
case kFunctionNewProcessing: {
GXFNewProcessViewController *pvc = [[GXFNewProcessViewController alloc] init];
// pvc.title = @"采购单";
[self PushViewController:pvc animated:YES];
}
break;
case kFunctionSeeProcessing:{
GXFListProcessViewController *seeProcessVC= [[GXFListProcessViewController alloc]init];
} break;
case kFunctionSeeProcessing: {
GXFListProcessViewController *seeProcessVC = [[GXFListProcessViewController alloc] init];
[self PushViewController:seeProcessVC animated:YES];
}
break;
} break;
case kFunctionSeeReceive://收货单
{
ReceiveViewController *tVC = [[ReceiveViewController alloc] init];
tVC.title = @"收货单";
[self PushViewController:tVC animated:YES];
}
break;
} break;
default:
return;
break;
default: return; break;
}
}
- (void)receiveClick:(UIBarButtonItem *)item{
- (void)receiveClick:(UIBarButtonItem *)item
{
ReceiveViewController *tVC = [[ReceiveViewController alloc] init];
tVC.title = @"收货单";
[self PushViewController:tVC animated:YES];
......@@ -271,7 +252,8 @@
//-(void)initView
//{
// NSArray *butArray=[[NSArray alloc]initWithObjects:@"公告", @"新建行情调研",@"查看行情调研",@"填写行情反馈",@"新建采购通知",@"查看采购通知",@"新建采购单",@"查看采购单",@"审核采购单",@"新建发运单",@"查看发运单",@"新建加工单",nil];
// NSArray *butArray=[[NSArray alloc]initWithObjects:@"公告",
// @"新建行情调研",@"查看行情调研",@"填写行情反馈",@"新建采购通知",@"查看采购通知",@"新建采购单",@"查看采购单",@"审核采购单",@"新建发运单",@"查看发运单",@"新建加工单",nil];
// for (int i=0; i<butArray.count; i++) {
// UIButton *but=[UIButton buttonWithType:UIButtonTypeCustom];
// but.frame=CGRectMake(15+i%3*(90+10),10+(i/3)*(100+10) , 90, 90) ;
......@@ -280,9 +262,9 @@
// [but setTitle:str forState:UIControlStateNormal];
// but.backgroundColor=[UIColor redColor];
// [self .view addSubview:but];
//
//
// }
//
//
//}
@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