开发者

How To Count Objects In Header File?

开发者 https://www.devze.com 2023-01-30 11:07 出处:网络
novice Objective-C programmer here. Could you please tell me a way to count the number of objects in the header file that I\'ve provided properties for?

novice Objective-C programmer here.

Could you please tell me a way to count the number of objects in the header file that I've provided properties for?

I've declared several arrays and I don't want to hardcode their number (e.g. [self objectCount].

T开发者_StackOverflow中文版he header file is UITableViewController, I've declared four NSMutableArrays and I've given them properties (e.g. set up getters and setters).

Will be much appreciated

Thanks


[self.object count];
0

精彩评论

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