比如我子类化了一个类叫Student,其中age的类型是Int,如下所示。
Student *student = [Student object];
student.age = 10;
[student saveInBackground];
我如何实现age的计数器呢?只能像下面的代码那样写吗?
[student incrementKey:@"age"];
[student saveInBackground];
-
创建时间
15年9月1日
-
最后回复
15年9月1日
-
3
回复
-
1.0K
浏览
-
2
用户
-
1
赞