Wednesday, September 29, 2010

Can you access the actual identifier from an enum element's numerical value?

Programmer Question

Is there a method to return the identifier string for a given element's numerical value? For instance, logging a UITouch's phase returns an int, but having the actual string value would be easier to read.



I suppose I could write my own switch statement to do this, but I'm hoping there's a built-in means.



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails