Skip to content

UI.View.backgroundColor

kerrishotts edited this page Apr 1, 2013 · 1 revision

(part of UI.View)

Type: color

Default: null

The background color of the view. If changed, it sends a backgroundColorDidChange notification.

Note: changing the internal properties should be avoided, as it does not utilize the setter method for the property. Therefore notifications will fail to fire and properties that rely on it will fail to be updated. When changing this property, you should always assign a new copy of the object that contains the desired modifications.

Usage

var aView = new UI.View();
aView.backgroundColor = UI.COLOR.blackColor();

Version

0.3 Introduced; Docs Valid.

Clone this wiki locally