Does anyone know if it's possible to create a freeform border around an image, instead of the typical rectangle border around the image when you drop it into the view controller
Asked
Active
Viewed 92 times
2
-
1what is freeform border ? – Jay Gajjar Mar 14 '14 at 14:04
-
Will all your images be the same size? – JMarsh Mar 14 '14 at 14:10
-
2There is no such thing as freeform border because an image always have a rectangle bounds no matter the pixels it contains. That being said, however you can draw anything with Core Graphics and show it above the image to make it look like it's border. [Quartz 2D Programming Guide](https://developer.apple.com/library/mac/documentation/graphicsimaging/conceptual/drawingwithquartz2d/Introduction/Introduction.html) – Desdenova Mar 14 '14 at 14:12
-
If you're wanting to clip the image on an arbitrary path, see this answer for a possible solution http://stackoverflow.com/questions/22410254/round-top-corners-of-a-uiview-and-add-border/22410814#22410814 – David Berry Mar 14 '14 at 17:35
-
Could you post some code? – Tony Cronin Mar 25 '14 at 08:52