V
V
Viktor Paperno2016-02-20 22:48:42
iOS
Viktor Paperno, 2016-02-20 22:48:42

Why is the font in the TextView changing?

I have a TextView named GameHistory. And there is this loop:

for i in 0...20 
{
 var str = "\(i) \n"
GameHistory.text = GameHistory.text + str
}

By default, GameHistory has a large font, but after the first iteration, the font becomes almost the minimum size. How to fix it?
2966f08407324c97848b497984ed2172.png76f466a207134326bd1004d8dc06dada.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Marunko, 2016-02-21
@Antonio-banderas

Is the container size enough? Isn't the container's font size set to auto-reduce?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question