I am running this app in simulator and in ipad2 and ipad air the style is coming different. Also tested in device same thing is happening. Any Idea how to fix this?
Code Snippet:
answerField.layer.borderWidth = 0.5
I am running this app in simulator and in ipad2 and ipad air the style is coming different. Also tested in device same thing is happening. Any Idea how to fix this?
Code Snippet:
answerField.layer.borderWidth = 0.5
try by increasing textbox borderwidth
by 1px.
This is a guess, but could it be that some of the simulators are running an older version of your app? Then you should go to "iOS Simulator" -> "Reset Content and Settings..." in the simulators that don't work for you.
maybe you can try like this:
#define BorderScaleWidth(width) [[UIScreen mainScreen] scale] > 2.0 ? width / [[UIScreen mainScreen] scale] : width
It will give you correct width.