سؤال

How can I pick a random UIFont by name (with a constant size)?

There isn't much more to this question but it seems SO wants more from me so here is some meaningless twaddle.

هل كانت مفيدة؟

المحلول

create an array of all the fonts you want and then use arc4rand to pick a random object at index to use as your font.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top