ios - How to get the name of HKWorkoutActivityType in HealthKit? -


ok, property workoutactivitytype of hkworkout returns nsinteger.

here list activities: workoutactivitytype list

for now, create plist , activity name when integer. seems little odd have go through this.

do need find out activity on own or there missing?

unfortunately, apple provides enum , have implement own names. idea lazily instantiate dictionary including keys of nsnumber (object wrapped nsinteger) , values of strings. should quite easy make , unfortunately solution.


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -