iphone - How to create uiscrollview with custom shapes in ios? -


i want create custom view image can scrollable , visible in shape created (i.e. triangle, oval, ect.)
have tried uibezierpath mask layer of imageview want same in uiscrollview image scrollable.
i want perform operation quick possible,please suggest me technique or example how it. in advance

here's do. tried out , works. need add mask view contains scroll view subview. (self in case view itself.)

cashapelayer *masklayer = [cashapelayer layer]; masklayer.path = [uibezierpath bezierpathwithroundedrect:cgrectinset(self.frame, 5, 5) cornerradius:50.0f].cgpath; self.layer.mask = masklayer; 

here's gist working code: https://gist.github.com/rcdilorenzo/6437136


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -