开发者

How to change attribute value from an entity (iphone)?

开发者 https://www.devze.com 2023-03-27 15:24 出处:网络
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, a

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

精彩评论

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

关注公众号