I’m a beginner working on an emotion annotation application. There are several buttons like “happy”,”angry” and etc… All the buttons will call a same action. And there is an UISlider. If you click on “happy” , then you adjust the slider to annotate how happy you are now. After that you click on button “angry”, the current value of slider will be stored in an float variable relatived to the last button, like “happy”. Then you adjust the same slider to annotate how “angry” you are. And the next button….
I don’t have idea about how to store the slider value for the last button…
Are there any ideas?
Thank you very much!!
I’m a beginner working on an emotion annotation application. There are several buttons like
Share
There are many ways to approach this. One of the most simple solutions is to tag your buttons, and then use a method to work out which button the action came from, set up a dictionary object with the slider value inside it, and then write it to a strong array accordingly.
MainViewController.h
MainViewController.m