Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Henry L
2017-10-13 11:37:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a2cedf4cec09ee3a792910a31a5eabee21dd3205
a2cedf4c
1 parent
845d406a
Fixed UI API called on a background thread.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.m
View file @
a2cedf4
...
...
@@ -4736,14 +4736,18 @@ static NSOperationQueue *sharedQueue = nil;
+
(
void
)
showNetworkActivityIndicator
{
#if TARGET_OS_IPHONE
[[
UIApplication
sharedApplication
]
setNetworkActivityIndicatorVisible
:
YES
];
dispatch_async
(
dispatch_get_main_queue
(),
^
{
[[
UIApplication
sharedApplication
]
setNetworkActivityIndicatorVisible
:
YES
];
});
#endif
}
+
(
void
)
hideNetworkActivityIndicator
{
#if TARGET_OS_IPHONE
[[
UIApplication
sharedApplication
]
setNetworkActivityIndicatorVisible
:
NO
];
dispatch_async
(
dispatch_get_main_queue
(),
^
{
[[
UIApplication
sharedApplication
]
setNetworkActivityIndicatorVisible
:
NO
];
});
#endif
}
...
...
Please
register
or
login
to post a comment