Commit b03fd189 authored by freecui's avatar freecui

报表,企信界面

parent d433768e
...@@ -52,20 +52,21 @@ ...@@ -52,20 +52,21 @@
+ (void)customTabbarAppearance { + (void)customTabbarAppearance {
if (IBT_IOS7_OR_LATER) { if (IBT_IOS7_OR_LATER) {
[[UITabBar appearance] setBarTintColor:ICR_TABBAR_TINT_COLOR]; [[UITabBar appearance] setBarTintColor:XXFBgColor];
//[[UITabBar appearance] setBarTintColor:ICR_TABBAR_TINT_COLOR];
} }
else { else {
[[UITabBar appearance] setTintColor:ICR_TABBAR_TINT_COLOR]; [[UITabBar appearance] setTintColor:ICR_TABBAR_TINT_COLOR];
} }
UIImage *selTab = [[UIImage imageNamed:@"TabbarSelectedBG"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; UIImage *selTab = [[UIImage imageNamed:@""] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];//TabbarSelectedBG
CGSize tabSize = CGSizeMake(IBT_MAIN_SCREEN_WIDTH/4, 49); CGSize tabSize = CGSizeMake(IBT_MAIN_SCREEN_WIDTH/4, 49);
UIGraphicsBeginImageContext(tabSize); UIGraphicsBeginImageContext(tabSize);
[selTab drawInRect:CGRectMake(0, 0, tabSize.width, tabSize.height)]; [selTab drawInRect:CGRectMake(0, 0, tabSize.width, tabSize.height)];
UIImage *reSizeImage = UIGraphicsGetImageFromCurrentImageContext(); UIImage *reSizeImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext(); UIGraphicsEndImageContext();
[[UITabBar appearance] setSelectionIndicatorImage:reSizeImage]; // [[UITabBar appearance] setSelectionIndicatorImage:reSizeImage];
} }
+ (void)customLableAppearance { + (void)customLableAppearance {
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
#pragma mark - Private Method #pragma mark - Private Method
- (void)initSubViews { - (void)initSubViews {
UIImageView *bg = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SystemImage"]]; UIImageView *bg = [[UIImageView alloc] initWithImage:[UIImage imageWithColor:GXF_SAVE_COLOR]];//[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SystemImage"]]; //;
bg.frame = self.bounds; bg.frame = self.bounds;
// bg.contentMode = UIViewContentModeScaleAspectFill; // bg.contentMode = UIViewContentModeScaleAspectFill;
[bg autoresizingWithStrechFullSize]; [bg autoresizingWithStrechFullSize];
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#define XFFruit_ICRAppMacro_h #define XFFruit_ICRAppMacro_h
// COLOR // COLOR
#define ICR_TINTCOLOR [UIColor colorWithR:63 g:134 b:244 a:1] #define ICR_TINTCOLOR [UIColor colorWithR:63 g:134 b:244 a:1] //蓝色
#define ICR_VIEW_BG_COLOR [UIColor whiteColor] #define ICR_VIEW_BG_COLOR [UIColor whiteColor]
#define ICR_BLUE_BTN_COLOR ICR_TINTCOLOR #define ICR_BLUE_BTN_COLOR ICR_TINTCOLOR
#define ICR_GRAY_BTN_COLOR [UIColor lightGrayColor] #define ICR_GRAY_BTN_COLOR [UIColor lightGrayColor]
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
#define GXF_NSUSERFEFTAULTS [NSUserDefaults standardUserDefaults] #define GXF_NSUSERFEFTAULTS [NSUserDefaults standardUserDefaults]
#define GXF_NAVIGAYION_COLOR HexColor(@"7ebf74") #define GXF_NAVIGAYION_COLOR HexColor(@"7ebf74")
#define GXF_SAVE_COLOR HexColor(@"50bd62") #define GXF_SAVE_COLOR HexColor(@"50bd62") //主调颜色绿色
#define GXF_COMMIT_COLOR HexColor(@"f69100") #define GXF_COMMIT_COLOR HexColor(@"f69100")
#define GXF_PLACEHOLDER_COLOR HexColor(@"bbbbbb") #define GXF_PLACEHOLDER_COLOR HexColor(@"bbbbbb")
#define GXF_CONTENT_COLOR HexColor(@"444444") #define GXF_CONTENT_COLOR HexColor(@"444444")
......
...@@ -57,27 +57,36 @@ ...@@ -57,27 +57,36 @@
// Do any additional setup after loading the view. // Do any additional setup after loading the view.
// UIBarButtonItem *backBtn = [[UIBarButtonItem alloc]initWithTitle:@"返回" style:UIBarButtonItemStyleDone target:self action:nil]; // UIBarButtonItem *backBtn = [[UIBarButtonItem alloc]initWithTitle:@"返回" style:UIBarButtonItemStyleDone target:self action:nil];
// self.navigationItem.backBarButtonItem = backBtn; // self.navigationItem.backBarButtonItem = backBtn;
[self setupSubviews];
// CGRect rect = CGRectMake(0, 200, self.view.width, 30);
if ([CLLocationManager locationServicesEnabled]) { IBTUILabel *lbl = [[IBTUILabel alloc]initWithFrame:rect];
lbl.text = @"哎呦,功能还没实现呢,下次再来看看吧。";
self.locationManager = [[CLLocationManager alloc] init]; lbl.textAlignment = NSTextAlignmentCenter;
lbl.font = [UIFont systemFontOfSize:15];
_locationManager.delegate = self; lbl.textColor = GXF_NAVIGAYION_COLOR;
[self.view addSubview:lbl];
_locationManager.desiredAccuracy = kCLLocationAccuracyBest; //控制定位精度,越高耗电量越大。
// [self setupSubviews];
_locationManager.distanceFilter = 100; //控制定位服务更新频率。单位是“米” ////
// if ([CLLocationManager locationServicesEnabled]) {
[_locationManager startUpdatingLocation]; //
// self.locationManager = [[CLLocationManager alloc] init];
//在ios 8.0下要授权 //
// _locationManager.delegate = self;
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) //
// _locationManager.desiredAccuracy = kCLLocationAccuracyBest; //控制定位精度,越高耗电量越大。
[_locationManager requestWhenInUseAuthorization]; //调用了这句,就会弹出允许框了. //
// _locationManager.distanceFilter = 100; //控制定位服务更新频率。单位是“米”
} //
// [_locationManager startUpdatingLocation];
//
// //在ios 8.0下要授权
//
// if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
//
// [_locationManager requestWhenInUseAuthorization]; //调用了这句,就会弹出允许框了.
//
// }
} }
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
...@@ -88,7 +97,7 @@ ...@@ -88,7 +97,7 @@
- (void)viewWillAppear:(BOOL)animated { - (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated]; [super viewWillAppear:animated];
[self fetchCurrentStore]; // [self fetchCurrentStore];
} }
#pragma mark - Setter #pragma mark - Setter
......
...@@ -40,11 +40,19 @@ UITableViewDelegate ...@@ -40,11 +40,19 @@ UITableViewDelegate
- (void)viewDidLoad { - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
[self setupSubviews]; // [self setupSubviews];
[self initData]; // [self initData];
[self getUnuploadData]; // [self getUnuploadData];
// Do any additional setup after loading the view. // Do any additional setup after loading the view.
CGRect rect = CGRectMake(0, 200, self.view.width, 30);
IBTUILabel *lbl = [[IBTUILabel alloc]initWithFrame:rect];
lbl.text = @"哎呦,功能还没实现呢,下次再来看看吧。";
lbl.textAlignment = NSTextAlignmentCenter;
lbl.font = [UIFont systemFontOfSize:15];
lbl.textColor = GXF_NAVIGAYION_COLOR;
[self.view addSubview:lbl];
} }
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
......
...@@ -117,19 +117,19 @@ ...@@ -117,19 +117,19 @@
[self.m_tableViewInfo addSection:secInfo]; [self.m_tableViewInfo addSection:secInfo];
#if DEBUG //#if DEBUG
// HTTP API // // HTTP API
secInfo = [IBTTableViewSectionInfo sectionInfoHeader:@"Test"]; // secInfo = [IBTTableViewSectionInfo sectionInfoHeader:@"Test"];
cellInfo = // cellInfo =
[IBTTableViewCellInfo normalCellForSel:@selector(onShowHTTPTestView:) target:self // [IBTTableViewCellInfo normalCellForSel:@selector(onShowHTTPTestView:) target:self
title:[IBTCommon localizableString:@"HTTP Restful API"] // title:[IBTCommon localizableString:@"HTTP Restful API"]
rightValue:nil // rightValue:nil
accessoryType:UITableViewCellAccessoryDisclosureIndicator]; // accessoryType:UITableViewCellAccessoryDisclosureIndicator];
[cellInfo addUserInfoValue:titleColor forKey:CInfoTitleColorKey]; // [cellInfo addUserInfoValue:titleColor forKey:CInfoTitleColorKey];
cellInfo.fCellHeight = fCellHeight; // cellInfo.fCellHeight = fCellHeight;
[secInfo addCell:cellInfo]; // [secInfo addCell:cellInfo];
[self.m_tableViewInfo addSection:secInfo]; // [self.m_tableViewInfo addSection:secInfo];
#endif //#endif
} }
......
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