Each todo app has a empty box on the left handside, when you touch the box, it changes to a checked box. When you tap it again, the checkmark disappears. I think everybody knows what I mean.
As you see it here (right):
How would I realize something like that ? Is it a UIButton ? I'm working with Core Data, how would I save the state ? With a boolean varibale ?
I tried to solve my problem now for days, but wasn't able to get it work.
Would be soo nice, when you could help me. Thx a lot ! Sebastian
You can use a UIButton
with different images for the default and selected states. Then, if you set the selected
property to YES
, the selected image will show instead.
To store it, I'd say that a BOOL
should be enough.