How many maximum number of components can be there in UIPickerView?

僤鯓⒐⒋嵵緔 提交于 2019-12-12 01:44:44

问题


I was just wondering, how many components can be added to a UIPickerView?


回答1:


Technically, NSObject inherited objects can hold up to NSUIntegerMax objects (this is the largest value that can be returned from count). On a 32-bit system like the iPhone, that is a little over 4 billion. On a 64-bit system like most Macs/iPhone5S, it is many orders of magnitude higher.

I suspect you will run out of RAM before you hit this CS limit.



来源:https://stackoverflow.com/questions/20241305/how-many-maximum-number-of-components-can-be-there-in-uipickerview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!