How many UILabels can be added to a View

I want to add about 300 grids to a UIView,It is OK if I use 300 UILabels? Or,besides UILabel,any better way to deal with it?

Answers


Grid means what you can make a UITableView with 300 rows and you can make any number of labels in your UIView


Perhaps start here. Other than that, I don't see a problem with UILabels, with that count, it might get slower though. Imagine how many objects you will be rendering...


If you create a UITableView with reusable cells, only the visible cells will be populated at any one time, so only those UILabels (assuming one or more per cell) will actually exist at any one time. Not a problem.


Need Your Help

How are multi-dimensional arrays formatted in memory?

c arrays memory data-structures stack-memory

In C, I know I can dynamically allocate a two-dimensional array on the heap using the following code:

TFS Check-in Policy - Force a shell command to have been run

tfs tfs2010 checkin

On the project that I'm currently working I have a requirement to run a shell command over some static files prior to check-in into TFS.