Commit 0e0c2f24aed0964cce24324e37cd47ba0170370a
1 parent
113ee83b
bug fix
Showing
2 changed files
with
1 additions
and
15 deletions
CNLiveNetworkingDemo/CNLiveNetworking/CNLiveNetworkManager.m
| ... | ... | @@ -40,27 +40,13 @@ static NSURLRequestCachePolicy CachePolicy = NSURLRequestUseProtocolCachePolicy; |
| 40 | 40 | |
| 41 | 41 | }); |
| 42 | 42 | |
| 43 | - manager.cachePolicy = NSURLRequestUseProtocolCachePolicy; | |
| 43 | + manager.cachePolicy = CachePolicy; | |
| 44 | 44 | |
| 45 | 45 | manager.timeoutInterval = TimeoutInterval; |
| 46 | 46 | |
| 47 | 47 | return manager; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | --(void)setTimeoutInterval:(NSTimeInterval)timeoutInterval | |
| 51 | -{ | |
| 52 | - if (timeoutInterval) { | |
| 53 | - TimeoutInterval = timeoutInterval; | |
| 54 | - } | |
| 55 | -} | |
| 56 | - | |
| 57 | --(void)setCachePolicy:(NSURLRequestCachePolicy)cachePolicy | |
| 58 | -{ | |
| 59 | - if (cachePolicy) { | |
| 60 | - CachePolicy = cachePolicy; | |
| 61 | - } | |
| 62 | -} | |
| 63 | - | |
| 64 | 50 | -(void)requestGetURL:(NSString *)URL |
| 65 | 51 | parameters:(NSDictionary *)parameters |
| 66 | 52 | success:(void (^)(NSURLResponse * _Nullable, id _Nullable))success | ... | ... |
CNLiveNetworkingDemo/CNLiveNetworkingDemo.xcodeproj/project.xcworkspace/xcuserdata/android.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type