Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
total
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
张杰
total
Commits
1f38935f
Commit
1f38935f
authored
Mar 17, 2017
by
Sandy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.oschina.net/gomore/total
Conflicts: total.xcodeproj/project.pbxproj
parents
53acfad5
0d826879
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2040 additions
and
1216 deletions
+2040
-1216
BusinessStoryBoard.storyboard
total/GTOApp/Business/BusinessStoryBoard.storyboard
+2018
-1194
NewObtainViewController.m
total/GTOApp/Business/NewObtainViewController.m
+3
-3
IBTRefreshTableView.h
total/IBTUtilites/IBTRefreshTableView/IBTRefreshTableView.h
+1
-1
IBTRefreshTableView.m
total/IBTUtilites/IBTRefreshTableView/IBTRefreshTableView.m
+18
-18
No files found.
total/GTOApp/Business/BusinessStoryBoard.storyboard
View file @
1f38935f
This diff is collapsed.
Click to expand it.
total/GTOApp/Business/NewObtainViewController.m
View file @
1f38935f
...
@@ -605,9 +605,9 @@
...
@@ -605,9 +605,9 @@
#pragma mark -油站选择
#pragma mark -油站选择
-
(
void
)
selectedGasStation
:
(
UIButton
*
)
btn
-
(
void
)
selectedGasStation
:
(
UIButton
*
)
btn
{
{
if
(
!
self
.
recordSelectOrder
)
{
//
if (!self.recordSelectOrder) {
[
IBTLoadingView
showTextOnly
:
@"请先选择配油单"
];
return
;
//
[IBTLoadingView showTextOnly:@"请先选择配油单"];return;
}
//
}
PromptTableViewController
*
promptVoew
=
[[
PromptTableViewController
alloc
]
init
];
PromptTableViewController
*
promptVoew
=
[[
PromptTableViewController
alloc
]
init
];
promptVoew
.
isBoolValue
=
YES
;
promptVoew
.
isBoolValue
=
YES
;
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
...
...
total/IBTUtilites/IBTRefreshTableView/IBTRefreshTableView.h
View file @
1f38935f
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
@interface
IBTRefreshTableView
:
IBTTableView
@interface
IBTRefreshTableView
:
IBTTableView
@property
(
assign
,
nonatomic
)
id
<
IBTScrollViewRefreshDelegate
>
refreshDelegate
;
@property
(
assign
,
nonatomic
)
id
<
IBTScrollViewRefreshDelegate
>
refreshDelegate
;
@property
(
strong
,
nonatomic
)
UIRefreshControl
*
refreshC
ontrol
;
@property
(
strong
,
nonatomic
)
UIRefreshControl
*
refreshC
tr
;
@property
(
strong
,
nonatomic
)
IBTScrollLoadMoreView
*
loadMoreView
;
@property
(
strong
,
nonatomic
)
IBTScrollLoadMoreView
*
loadMoreView
;
-
(
void
)
scrollToTopAnimated
:(
BOOL
)
animated
;
-
(
void
)
scrollToTopAnimated
:(
BOOL
)
animated
;
...
...
total/IBTUtilites/IBTRefreshTableView/IBTRefreshTableView.m
View file @
1f38935f
...
@@ -56,8 +56,8 @@
...
@@ -56,8 +56,8 @@
[
super
didMoveToWindow
];
[
super
didMoveToWindow
];
if
(
!
self
.
window
)
{
if
(
!
self
.
window
)
{
if
(
_refreshC
ontrol
)
{
if
(
_refreshC
tr
)
{
[
_refreshC
ontrol
endRefreshing
];
[
_refreshC
tr
endRefreshing
];
}
}
if
(
_refreshFooterView
)
{
if
(
_refreshFooterView
)
{
...
@@ -126,31 +126,31 @@
...
@@ -126,31 +126,31 @@
animated
:
animated
];
animated
:
animated
];
}
}
-
(
void
)
add
RefreshControl
WithText
:
(
NSString
*
)
text
{
-
(
void
)
add
refreshCtr
WithText
:
(
NSString
*
)
text
{
if
(
!
_refreshC
ontrol
)
{
if
(
!
_refreshC
tr
)
{
self
.
refreshC
ontrol
=
[[
UIRefreshControl
alloc
]
init
];
self
.
refreshC
tr
=
[[
UIRefreshControl
alloc
]
init
];
[
_refreshC
ontrol
addTarget
:
self
[
_refreshC
tr
addTarget
:
self
action
:
@selector
(
handleRefresh
:
)
action
:
@selector
(
handleRefresh
:
)
forControlEvents
:
UIControlEventValueChanged
];
forControlEvents
:
UIControlEventValueChanged
];
}
}
if
(
text
.
length
>
0
)
{
if
(
text
.
length
>
0
)
{
_refreshC
ontrol
.
attributedTitle
=
[[
NSAttributedString
alloc
]
initWithString
:
text
];
_refreshC
tr
.
attributedTitle
=
[[
NSAttributedString
alloc
]
initWithString
:
text
];
}
}
if
(
!
_refreshC
ontrol
.
superview
)
{
if
(
!
_refreshC
tr
.
superview
)
{
[
self
addSubview
:
_refreshC
ontrol
];
[
self
addSubview
:
_refreshC
tr
];
}
}
}
}
-
(
void
)
remove
RefreshControl
{
-
(
void
)
remove
refreshCtr
{
if
(
_refreshC
ontrol
&&
_refreshControl
.
superview
)
{
if
(
_refreshC
tr
&&
_refreshCtr
.
superview
)
{
[
_refreshC
ontrol
removeFromSuperview
];
[
_refreshC
tr
removeFromSuperview
];
}
}
}
}
-
(
void
)
handleRefresh
:
(
id
)
sender
{
-
(
void
)
handleRefresh
:
(
id
)
sender
{
// UI
RefreshControl *refreshControl = (UIRefreshControl
*)sender;
// UI
refreshCtr *refreshCtr = (UIrefreshCtr
*)sender;
if
([
_refreshDelegate
respondsToSelector
:
@selector
(
startRefreshData
:)])
{
if
([
_refreshDelegate
respondsToSelector
:
@selector
(
startRefreshData
:)])
{
// Do networking in |startRefreshData:|
// Do networking in |startRefreshData:|
[
_refreshDelegate
startRefreshData
:
self
];
[
_refreshDelegate
startRefreshData
:
self
];
...
@@ -182,14 +182,14 @@
...
@@ -182,14 +182,14 @@
// }
// }
//
//
// if (textStr.length > 0) {
// if (textStr.length > 0) {
// _refreshC
ontrol
.attributedTitle = [[NSAttributedString alloc] initWithString:textStr];
// _refreshC
tr
.attributedTitle = [[NSAttributedString alloc] initWithString:textStr];
// }
// }
if
(
_refreshC
ontrol
.
refreshing
)
{
if
(
_refreshC
tr
.
refreshing
)
{
[
_refreshC
ontrol
endRefreshing
];
[
_refreshC
tr
endRefreshing
];
// Fix ContentInset became -60 when UI
RefreshControl
ler endRefreshing
// Fix ContentInset became -60 when UI
refreshCtr
ler endRefreshing
// http://stackoverflow.com/questions/20101572/ios7-uirefresh
control
-changes-contentinset
// http://stackoverflow.com/questions/20101572/ios7-uirefresh
Ctr
-changes-contentinset
if
(
self
.
contentInset
.
top
<
0
)
{
if
(
self
.
contentInset
.
top
<
0
)
{
UIEdgeInsets
inset
=
self
.
contentInset
;
UIEdgeInsets
inset
=
self
.
contentInset
;
inset
.
top
=
0
;
inset
.
top
=
0
;
...
...
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