Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
xffruit
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
张杰
xffruit
Commits
b03fd189
Commit
b03fd189
authored
Oct 30, 2015
by
freecui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报表,企信界面
parent
d433768e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
62 additions
and
44 deletions
+62
-44
ICRUIAppearance.m
XFFruit/General/Classes/UIAppearance/ICRUIAppearance.m
+4
-3
ICRSystemHeaderView.m
XFFruit/General/Views/ICRSystemHeaderView.m
+1
-1
ICRAppMacro.h
XFFruit/Macro/ICRAppMacro.h
+1
-1
IBTConstants.h
XFFruit/Utilities/IBTUIKit/IBTConstants.h
+1
-1
ICRStoreViewController.m
XFFruit/ViewControllers/Store/ICRStoreViewController.m
+31
-22
ICRSyncViewController.m
XFFruit/ViewControllers/Sync/ICRSyncViewController.m
+11
-3
ICRSystemViewController.m
XFFruit/ViewControllers/System/ICRSystemViewController.m
+13
-13
No files found.
XFFruit/General/Classes/UIAppearance/ICRUIAppearance.m
View file @
b03fd189
...
...
@@ -52,20 +52,21 @@
+
(
void
)
customTabbarAppearance
{
if
(
IBT_IOS7_OR_LATER
)
{
[[
UITabBar
appearance
]
setBarTintColor
:
ICR_TABBAR_TINT_COLOR
];
[[
UITabBar
appearance
]
setBarTintColor
:
XXFBgColor
];
//[[UITabBar appearance] setBarTintColor:ICR_TABBAR_TINT_COLOR];
}
else
{
[[
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
);
UIGraphicsBeginImageContext
(
tabSize
);
[
selTab
drawInRect
:
CGRectMake
(
0
,
0
,
tabSize
.
width
,
tabSize
.
height
)];
UIImage
*
reSizeImage
=
UIGraphicsGetImageFromCurrentImageContext
();
UIGraphicsEndImageContext
();
[[
UITabBar
appearance
]
setSelectionIndicatorImage
:
reSizeImage
];
//
[[UITabBar appearance] setSelectionIndicatorImage:reSizeImage];
}
+
(
void
)
customLableAppearance
{
...
...
XFFruit/General/Views/ICRSystemHeaderView.m
View file @
b03fd189
...
...
@@ -81,7 +81,7 @@
#pragma mark - Private Method
-
(
void
)
initSubViews
{
UIImageView
*
bg
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
image
Named
:
@"SystemImage"
]]
;
UIImageView
*
bg
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
image
WithColor
:
GXF_SAVE_COLOR
]];
//[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SystemImage"]]; //
;
bg
.
frame
=
self
.
bounds
;
// bg.contentMode = UIViewContentModeScaleAspectFill;
[
bg
autoresizingWithStrechFullSize
];
...
...
XFFruit/Macro/ICRAppMacro.h
View file @
b03fd189
...
...
@@ -10,7 +10,7 @@
#define XFFruit_ICRAppMacro_h
// 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_BLUE_BTN_COLOR ICR_TINTCOLOR
#define ICR_GRAY_BTN_COLOR [UIColor lightGrayColor]
...
...
XFFruit/Utilities/IBTUIKit/IBTConstants.h
View file @
b03fd189
...
...
@@ -95,7 +95,7 @@
#define GXF_NSUSERFEFTAULTS [NSUserDefaults standardUserDefaults]
#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_PLACEHOLDER_COLOR HexColor(@"bbbbbb")
#define GXF_CONTENT_COLOR HexColor(@"444444")
...
...
XFFruit/ViewControllers/Store/ICRStoreViewController.m
View file @
b03fd189
...
...
@@ -57,27 +57,36 @@
// Do any additional setup after loading the view.
// UIBarButtonItem *backBtn = [[UIBarButtonItem alloc]initWithTitle:@"返回" style:UIBarButtonItemStyleDone target:self action:nil];
// self.navigationItem.backBarButtonItem = backBtn;
[
self
setupSubviews
];
//
if
([
CLLocationManager
locationServicesEnabled
])
{
self
.
locationManager
=
[[
CLLocationManager
alloc
]
init
];
_locationManager
.
delegate
=
self
;
_locationManager
.
desiredAccuracy
=
kCLLocationAccuracyBest
;
//控制定位精度,越高耗电量越大。
_locationManager
.
distanceFilter
=
100
;
//控制定位服务更新频率。单位是“米”
[
_locationManager
startUpdatingLocation
];
//在ios 8.0下要授权
if
([[[
UIDevice
currentDevice
]
systemVersion
]
floatValue
]
>=
8
.
0
)
[
_locationManager
requestWhenInUseAuthorization
];
//调用了这句,就会弹出允许框了.
}
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
];
// [self setupSubviews];
////
// if ([CLLocationManager locationServicesEnabled]) {
//
// self.locationManager = [[CLLocationManager alloc] init];
//
// _locationManager.delegate = self;
//
// _locationManager.desiredAccuracy = kCLLocationAccuracyBest; //控制定位精度,越高耗电量越大。
//
// _locationManager.distanceFilter = 100; //控制定位服务更新频率。单位是“米”
//
// [_locationManager startUpdatingLocation];
//
// //在ios 8.0下要授权
//
// if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
//
// [_locationManager requestWhenInUseAuthorization]; //调用了这句,就会弹出允许框了.
//
// }
}
-
(
void
)
didReceiveMemoryWarning
{
...
...
@@ -88,7 +97,7 @@
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
{
[
super
viewWillAppear
:
animated
];
[
self
fetchCurrentStore
];
//
[self fetchCurrentStore];
}
#pragma mark - Setter
...
...
XFFruit/ViewControllers/Sync/ICRSyncViewController.m
View file @
b03fd189
...
...
@@ -40,11 +40,19 @@ UITableViewDelegate
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
self
setupSubviews
];
[
self
initData
];
[
self
getUnuploadData
];
//
[self setupSubviews];
//
[self initData];
//
[self getUnuploadData];
// 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
{
...
...
XFFruit/ViewControllers/System/ICRSystemViewController.m
View file @
b03fd189
...
...
@@ -117,19 +117,19 @@
[
self
.
m_tableViewInfo
addSection
:
secInfo
];
#if DEBUG
// HTTP API
secInfo
=
[
IBTTableViewSectionInfo
sectionInfoHeader
:
@"Test"
];
cellInfo
=
[
IBTTableViewCellInfo
normalCellForSel
:
@selector
(
onShowHTTPTestView
:)
target
:
self
title
:
[
IBTCommon
localizableString
:
@"HTTP Restful API"
]
rightValue
:
nil
accessoryType
:
UITableViewCellAccessoryDisclosureIndicator
];
[
cellInfo
addUserInfoValue
:
titleColor
forKey
:
CInfoTitleColorKey
];
cellInfo
.
fCellHeight
=
fCellHeight
;
[
secInfo
addCell
:
cellInfo
];
[
self
.
m_tableViewInfo
addSection
:
secInfo
];
#endif
//
#if DEBUG
//
// HTTP API
//
secInfo = [IBTTableViewSectionInfo sectionInfoHeader:@"Test"];
//
cellInfo =
//
[IBTTableViewCellInfo normalCellForSel:@selector(onShowHTTPTestView:) target:self
//
title:[IBTCommon localizableString:@"HTTP Restful API"]
//
rightValue:nil
//
accessoryType:UITableViewCellAccessoryDisclosureIndicator];
//
[cellInfo addUserInfoValue:titleColor forKey:CInfoTitleColorKey];
//
cellInfo.fCellHeight = fCellHeight;
//
[secInfo addCell:cellInfo];
//
[self.m_tableViewInfo addSection:secInfo];
//
#endif
}
...
...
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