0

In Ipad2 it is coming like this

In Ipad Air it is coming like this

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
Swayambhu
  • 458
  • 2
  • 8
  • 19

3 Answers3

1

try by increasing textbox borderwidth by 1px.

Aanabidden
  • 375
  • 6
  • 18
0

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.

Simon Degn
  • 901
  • 1
  • 12
  • 40
0

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.

Joshua
  • 121
  • 1
  • 6