How to change attribute value from an entity (iphone)?
my question is, I have an entity which contains an integer attribute value, that its initially va开发者_如何学运维lue is 0, how can I update this attribute value? in specific what I have is a button, and whenever the button is pressed I need the attribute value to be updated?
I appreciate any help.!
You need to implement a method -(IBAction) buttonPressed:(id) sender in the .m file in which you want to update the value. there you need to increment entity.atributevalue++;
精彩评论