Implicit conversion from enumeration type with Xcode 6

Jon

I just updated to Xcode 6 and got an warning message that I cannot solve. I have been searching for an answer for hours, but no luck. The warning and the code line are below. Has anyone else had this problem?

Warning

Implicit conversion from enumeration type 'enum NSURLCacheStoragePolicy' to different enumeration type 'NSURLRequestCachePolicy' (aka 'enum NSURLRequestCachePolicy')

Code

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:geocodeUrl] cachePolicy:NSURLCacheStorageAllowed timeoutInterval:10.0];
Phillip Mills

Docs say cachePolicy: should be one of NSURLRequestUseProtocolCachePolicy, NSURLRequestReloadIgnoringLocalCacheData, NSURLRequestReturnCacheDataElseLoad, or NSURLRequestReturnCacheDataDontLoad. The value you're passing to it is defined for responses rather than requests.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

implicit conversion from class to enumeration type in switch conditional

From Dev

Implicit conversion from enumeration type 'enum CGImageAlphaInfo' to different enumeration type 'CGBitmapinfo' (aka) 'enum CGBitmapInfo')

From Dev

IOS ELCImagePicker Implicit conversion from enumeration type ALAssetOrientation to different enumeration type UIImageOrientation

From Dev

Implicit conversion from enumeration type 'enum UIDeviceOrientation' to different enum type 'UIInterfaceOrientation' 'enum UIInterfaceOrientation

From Dev

Implicit conversion from enum type 'NSTextAlignment' aka 'enum NSTextAlignment' to diff. enumeration type 'UITextAlignment' aka 'enum UITextAlignment'

From Dev

Implicit conversion for generic type?

From Dev

Swift implicit conversion of type

From Dev

Implicit conversion of function type

From Dev

Implicit type conversion with structs

From Dev

Implicit type conversion with structs

From Dev

Scala: Implicit Conversion From Generic Type to Second Generic Type

From Dev

Implicit conversion from lambda expression to user-defined type

From Dev

implicit conversion of vector from one type to another c++

From Dev

Implicit conversion from data type varbinary to date SQL server

From Dev

Implicit conversion from null

From Dev

Implicit type conversion for lambda expression

From Dev

Implicit conversion in template type deduction

From Dev

Entity Framework Implicit Type Conversion

From Dev

Implicit integer type conversion in C

From Dev

Implicit Data Type Conversion in Oracle

From Dev

Implicit type conversion with reference to void*

From Dev

Implicit conversion in template type deduction

From Dev

Entity Framework Implicit Type Conversion

From Dev

std::function implicit type conversion

From Dev

The type '' cannot be used as type parameter 'T' in the generic type or method ''. There is no implicit reference conversion from '' to ''

From Dev

The type cannot be used as type 'T' in the generic type or method. There is no implicit reference conversion from to

From Dev

Invalid conversion from Foo** to void** - why is implicit type conversion allowed to void* but not to void**?

From Dev

Invalid conversion from Foo** to void** - why is implicit type conversion allowed to void* but not to void**?

From Dev

C# implicit conversion and conversion from Object

Related Related

  1. 1

    implicit conversion from class to enumeration type in switch conditional

  2. 2

    Implicit conversion from enumeration type 'enum CGImageAlphaInfo' to different enumeration type 'CGBitmapinfo' (aka) 'enum CGBitmapInfo')

  3. 3

    IOS ELCImagePicker Implicit conversion from enumeration type ALAssetOrientation to different enumeration type UIImageOrientation

  4. 4

    Implicit conversion from enumeration type 'enum UIDeviceOrientation' to different enum type 'UIInterfaceOrientation' 'enum UIInterfaceOrientation

  5. 5

    Implicit conversion from enum type 'NSTextAlignment' aka 'enum NSTextAlignment' to diff. enumeration type 'UITextAlignment' aka 'enum UITextAlignment'

  6. 6

    Implicit conversion for generic type?

  7. 7

    Swift implicit conversion of type

  8. 8

    Implicit conversion of function type

  9. 9

    Implicit type conversion with structs

  10. 10

    Implicit type conversion with structs

  11. 11

    Scala: Implicit Conversion From Generic Type to Second Generic Type

  12. 12

    Implicit conversion from lambda expression to user-defined type

  13. 13

    implicit conversion of vector from one type to another c++

  14. 14

    Implicit conversion from data type varbinary to date SQL server

  15. 15

    Implicit conversion from null

  16. 16

    Implicit type conversion for lambda expression

  17. 17

    Implicit conversion in template type deduction

  18. 18

    Entity Framework Implicit Type Conversion

  19. 19

    Implicit integer type conversion in C

  20. 20

    Implicit Data Type Conversion in Oracle

  21. 21

    Implicit type conversion with reference to void*

  22. 22

    Implicit conversion in template type deduction

  23. 23

    Entity Framework Implicit Type Conversion

  24. 24

    std::function implicit type conversion

  25. 25

    The type '' cannot be used as type parameter 'T' in the generic type or method ''. There is no implicit reference conversion from '' to ''

  26. 26

    The type cannot be used as type 'T' in the generic type or method. There is no implicit reference conversion from to

  27. 27

    Invalid conversion from Foo** to void** - why is implicit type conversion allowed to void* but not to void**?

  28. 28

    Invalid conversion from Foo** to void** - why is implicit type conversion allowed to void* but not to void**?

  29. 29

    C# implicit conversion and conversion from Object

HotTag

Archive