0

I want to custom the scrollable area of UIScrollview from rectangle to circle. Is there any way to complete it? like resizing contentSize?

Harikrishnan
  • 7,765
  • 13
  • 62
  • 113
wl song
  • 15
  • 3
  • u mean make the scrollview become circle or just the touch scroll area? – Tj3n Dec 11 '15 at 07:01
  • Just touch scroll area – wl song Dec 11 '15 at 08:35
  • 1
    I didn't try this, but perhaps make the frame square, then set the scroll view layer's `cornerRadius` property to half the side of the square? – Nicolas Miari Dec 11 '15 at 08:44
  • 2
    u can create an invisible view on top of the scrollview and use `CALayer` to remove a circular mask in it then it should give the effect that u wanted, more in [this SO Question](http://stackoverflow.com/questions/16512761/calayer-with-transparent-hole-in-it) or [this](http://atmarkplant.com/create-hole-in-uiview/) – Tj3n Dec 11 '15 at 08:44
  • thank you for your help~ – wl song Dec 14 '15 at 03:11

0 Answers0