---
title: "IOS UILable 背景设置透明"
author: "jguangyou"
date: "2012-09-14T13:54:00Z"
tags: []
categories: ["移动开发"]
slug: "ios-uilable"
draft: false
lastmod: "2012-09-14T13:54:00Z"
id: 1678499
url: "https://deep-fish.iteye.com/blog/1678499"
---

如果将UILabel 的alpha 设置为0，label上的字体也看不见了，那应该怎么设置透明呢，很简单：label.backgroundColor = ; 这样，背景就透明了，哈哈。