This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1 Replies Last post: Jun 24, 2013 10:00 AM by Anton Makeev  
Yves Le Borgne Novice 106 posts since
Aug 22, 2011
Currently Being Moderated

Jun 22, 2013 12:44 AM

issue resolving enums ? AppCode 2.1

I get this a warning when (i feel) the proper enum value is used and declared. (UITextAlignmentLeft , enum UITextAlignment)

 

Does this rank as a bug or am i missing something fundamental in obj-c ?

Anton Makeev JetBrains 1,284 posts since
Dec 19, 2006
Currently Being Moderated
Jun 24, 2013 10:00 AM in response to: Yves Le Borgne
Re: issue resolving enums ? AppCode 2.1

Yves,

 

this is expected behavior (and the same as in previous versions of AppCode) - the problem is that UITextAlignment* constants are untyped and deprecated and NSTextAlignment* should be used instead.

AppCode finds a ponential problem when untyped enum constant is assigned to the typed enum field and highlights it.

More Like This

  • Retrieving data ...