---
title: "UIImageView 设置圆角"
author: "修博龙泉"
date: "2012-11-12T14:43:43Z"
tags: []
categories: ["移动开发"]
slug: "uiimageview"
draft: false
lastmod: "2012-11-12T14:43:43Z"
id: 1723008
url: "https://longquan.iteye.com/blog/1723008"
---

```java

#import <QuartzCore/QuartzCore.h>       
 CALayer *l = [uiimageview layer];
        [l setmaskstobounds:yes];
        [l setcornerradius:6.0];
        [headerscrollview addsubview:headerimage];

```