Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMBase
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMBase
Commits
b01766cd
Commit
b01766cd
authored
Jul 12, 2016
by
汪洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
showLoad参数可为nil;埋点pageName容错处理:为nil时返回空字符串
parent
8e359296
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
UIViewController+HUD.h
GMBase/Classes/UIViewController+HUD.h
+4
-1
WMBaseViewController.m
GMBase/Classes/WMBaseViewController.m
+2
-1
No files found.
GMBase/Classes/UIViewController+HUD.h
View file @
b01766cd
...
...
@@ -8,12 +8,13 @@
#import <UIKit/UIKit.h>
#import <MBProgressHUD/MBProgressHUD.h>
NS_ASSUME_NONNULL_BEGIN
@interface
UIViewController
(
HUD
)
/**
* @brief 显示加载动画
* @param text 加载动画文字
*/
-
(
void
)
showLoading
:(
NSString
*
)
text
;
-
(
void
)
showLoading
:(
nullable
NSString
*
)
text
;
/**
* @brief 显示隐藏加载
...
...
@@ -42,3 +43,4 @@
-
(
void
)
toastInView
:(
NSString
*
)
text
;
@end
NS_ASSUME_NONNULL_END
\ No newline at end of file
GMBase/Classes/WMBaseViewController.m
View file @
b01766cd
...
...
@@ -184,7 +184,8 @@
}
-
(
NSString
*
)
pageName
{
return
objc_getAssociatedObject
(
self
,
@selector
(
pageName
));
NSString
*
name
=
objc_getAssociatedObject
(
self
,
@selector
(
pageName
));
return
name
==
nil
?
@""
:
name
;
}
-
(
void
)
setPageName
:
(
NSString
*
)
pageName
{
...
...
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