开发者

How to dynamically present text on application view?

I'm working on an app which look like a paper block which keeps score for one game, when user types the score and taps Insert, I want to that sc开发者_运维技巧ore to become visible on that paper block.

Let's say that there could be maximum od 12 lines of score on the paper, and the user must type those 12 lines, what is the best way to display one line of score at the time? (He enters the score and there is only one score in the first line, he types the score again, and the second score appears in the second line of the paper)

Should I create 12 labels in a row in the nib, and after users types the first score it will display in the first label, after he types the second score it will display in the second label and so on...

Is there an easier way to do this? Because I can't think of any...


Try to use an UITableView and update it dataSource array.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜