I work on the app with some calculate function. I have a UITextField where user enter a number and UILabel where is result. How can I display some text in second UILabel depending on the number in the first UILabel?
Example:
If number in *firstLabel less than 20, then display in *secondLabel: small
If number in *firstLabel from 20 to 30, then display in *secondLabel: normal
If number in *firstLabel greater than 40, then display in *secondLabel: big
I hope you understood what i mean. Thank you! Sorry for my english.
you need to get the int value from your firstLabel, Which is stored as text, you could get it by using
NSStringintValuefunction.Use the below