There is really no clean way to do this in Objective-C (or C, for that matter).
You will need to match the enum values โโwith your string counterparts. There are several ways to do this: (1) a dictionary, as you mentioned. (2) Switch operator. (3) An array of row values, where each index displays the corresponding enumeration value.
csano source share