Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-iOS
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
张杰
Opple-iOS
Commits
bc517311
Commit
bc517311
authored
Dec 01, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:优化加载框
parent
6f6d36f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
MBProgressHUD.m
Pods/MBProgressHUD/MBProgressHUD.m
+1
-0
XBLoadingView.m
Tools/LoadingView/XBLoadingView.m
+3
-3
No files found.
Pods/MBProgressHUD/MBProgressHUD.m
View file @
bc517311
...
...
@@ -145,6 +145,7 @@ static const CGFloat kDetailsLabelFontSize = 12.f;
if
([
subview
isKindOfClass
:
self
])
{
return
(
MBProgressHUD
*
)
subview
;
}
NSLog
(
@"%@"
,
subview
);
}
return
nil
;
}
...
...
Tools/LoadingView/XBLoadingView.m
View file @
bc517311
...
...
@@ -15,7 +15,7 @@
*/
+
(
void
)
showHUDViewWithDefault
{
MBProgressHUD
*
hud
=
[
MBProgressHUD
showHUDAddedTo
:
SHARED_APPDELEGATE
.
window
animated
:
YES
];
XBLoadingView
*
hud
=
[
XBLoadingView
showHUDAddedTo
:
SHARED_APPDELEGATE
.
window
animated
:
YES
];
hud
.
animationType
=
MBProgressHUDAnimationZoom
;
hud
.
mode
=
MBProgressHUDModeIndeterminate
;
hud
.
color
=
[
UIColor
clearColor
];
...
...
@@ -31,7 +31,7 @@
+
(
void
)
showHUDViewWithText
:
(
NSString
*
)
text
{
[[
self
class
]
hideHUDViewWithDefault
];
MBProgressHUD
*
hud
=
[
MBProgressHUD
showHUDAddedTo
:
SHARED_APPDELEGATE
.
window
animated
:
YES
];
XBLoadingView
*
hud
=
[
XBLoadingView
showHUDAddedTo
:
SHARED_APPDELEGATE
.
window
animated
:
YES
];
hud
.
labelText
=
text
;
hud
.
margin
=
20
.
f
;
hud
.
color
=
[[
UIColor
blackColor
]
colorWithAlphaComponent
:
0
.
5
];
...
...
@@ -48,7 +48,7 @@
*/
+
(
void
)
showHUDViewWithSuccessText
:
(
NSString
*
)
text
{
MBProgressHUD
*
hud
=
[
MBProgressHUD
showHUDAddedTo
:
SHARED_APPDELEGATE
.
window
animated
:
YES
];
XBLoadingView
*
hud
=
[
XBLoadingView
showHUDAddedTo
:
SHARED_APPDELEGATE
.
window
animated
:
YES
];
hud
.
mode
=
MBProgressHUDModeCustomView
;
UIImage
*
image
=
[[
UIImage
imageNamed
:
@"Checkmark"
]
imageWithRenderingMode
:
UIImageRenderingModeAlwaysOriginal
];
hud
.
customView
=
[[
UIImageView
alloc
]
initWithImage
:
image
];
...
...
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