我刚刚更新到Xcode 6,收到了一条我无法解决的警告消息。我已经找了好几个小时的答案了,但没有运气。警告和代码行在下面。还有其他人有这个问题吗?
警告
从枚举类型'enum NSURLCacheStoragePolicy‘到不同枚举类型'NSURLRequestCachePolicy’(又名'enum NSURLRequestCachePolicy')的隐式转换
码
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:geocodeUrl] cachePolicy:NSURLCacheStorageAllowed timeoutInterval:10.0];发布于 2014-09-21 15:14:07
医生说cachePolicy:应该是NSURLRequestUseProtocolCachePolicy,NSURLRequestReloadIgnoringLocalCacheData,NSURLRequestReturnCacheDataElseLoad或NSURLRequestReturnCacheDataDontLoad中的一个。要传递给它的值是为响应而不是请求定义的。
https://stackoverflow.com/questions/25960583
复制相似问题