MonoTouch: Rounded UIImage Convenience Method

后端 未结 5 1754
故里飘歌
故里飘歌 2021-01-21 21:04

Is there a MonoTouch built-in method to round the edges of a UIImage ?

I seem to remember seeing it once.

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-21 21:32

    In MonoTouch (and iOS itself) it's not something you can do on UIImage itself. However you can do this on UIImageView by manipulating its Layer property.

    See this answer for an Objective-C example that would be simple to convert to C#.

提交回复
热议问题