---
title: "IOS UIView的clipsToBounds属性"
author: "jguangyou"
date: "2012-09-10T17:38:12Z"
tags: []
categories: ["移动开发"]
slug: "ios-uiview-clipstobounds"
draft: false
lastmod: "2012-09-10T17:38:12Z"
id: 1675286
url: "https://deep-fish.iteye.com/blog/1675286"
---

clipsToBounds属性介绍：

值：BOOL（YES/NO）
作用：决定了子视图的显示范围。具体的说，就是当取值为YES时，剪裁超出父视图范围的子视图部分；当取值为NO时，不剪裁子视图（超出部分继续显示，例如在scrollview中。。。）。默认值为NO。