iphone - Converting between unique NSIndexPath and unique NSUInteger (or int) -
What is a better way than creating a one-by-one mapping between the NSIndexPath of the table view cell? and a unique
NSUInteger
or int
, a specific tag
cell (a UIProgressView
)
link NSIndexPath
and int
, but They work less than just certain lines
That's right, I can not walk in that range, but I am thinking that there is a mapping with which nobody has come, it should be guaranteed to work for any line May be. No, in fact, there is no guarantee of working for any kind of rows if you have 2 squares.
With a table, with 3 billion rows in each, there is no way to map those 6 billion potential NSINXPath into 4 billion 32-bit NSINTGARS. (If you were creating a 64-bit version, bit app, this is true, but in the examples the number would be 4 billion times higher.)
They added 10,000 rows in per section Use the range of; If you are seriously worried that you may have more rows than that, then you can use a large stability, that is, you can use the maximum number as 1,000,000 if you know that you have 4,000 No more sections.
Note that "real programmer" will definitely use 65536 as constant.
Comments
Post a Comment