Ask: iOS question - border that rotates with view but doesn't scale with it?
I am a long time web developer.
Started developing for ios.
I've created a view.
The user can rotate, scale and move it.
My question is, how do I attach a border to it in such a way that the border will rotate with the view, but won't scale with it?<p>Thanks.
3 comments
[ 4.2 ms ] story [ 8.9 ms ] threadWith regards to your specific question, if you use the various border properties of the underlying `CALayer` (`borderColor`, `borderWidth`, etc) and scale the view by changing its bounds the border will retain the same width as before. You can also scale a view by transforming it, but that's slightly different.