开发者

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++;

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜