Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Consider using StackOverflow for questions like this...there's a substantial number of iOS devs who hang around there (myself included!) - plus it's far more likely somebody else with the same problem will stumble upon your question and spread the knowledge.

With 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.



Thank you very much for your response. Specifically it seems as though using the transformations will cause my border to scale as well. And since I am using UIPinchGestureRecognizers, manipulating the CALayer's width and height properties seems somewhat conter productive.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: