Mil0R3
Mil0R3

Reputation: 3956

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?

Upvotes: 0

Views: 101

Answers (3)

ahwulf
ahwulf

Reputation: 2584

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.

Upvotes: 0

Abhishek
Abhishek

Reputation: 2253

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

Upvotes: 1

Michal
Michal

Reputation: 15669

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...

Upvotes: 0

Related Questions