الخميس، 26 ديسمبر 2013

UITextView to Mimic UITextField [for basic round corner text field]

I want to have UITextField with multiple lines, after a quick google on this issue I found that I should use TextView so I did switch my code to use UITextView when I want multiple lines. My View still have other one line textField that I want to keep.

To make my TextView looks like TextField, I had to add code to set border and radius, but they look a little bit different on iOS7. Does anyone know:

what is the color for the UITextField border? when both enabled and disabled so I can sent my textview to match it.what is radius of the corner of TextField.what is the background color for UITextField when it is disabled[attached picture shows the text field has lighter shade of grey when it is disabled]? so i can set my text view to the same color when i disable user interaction.

If there is away to keep using textfield for multiline text, I am all ears and i switch to use it.

Best Regards,

enter image description here


View the original article here

ليست هناك تعليقات:

إرسال تعليق