2012-06-23 116 views
0

我正在觀看關於RubyMotion的入門截屏視頻,開始http://pragmaticstudio.com/screencasts/rubymotion。在截屏中,作者使用window.backgroundColor設置背景顏色。但是,當我查看此頁上的UIWindow類引用http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWindow_Class/UIWindowClassReference/UIWindowClassReference.html#//apple_ref/doc/uid/TP40006817時,我看不到backgroundColor屬性。這是從哪裏來的?任何人都可以幫忙嗎?RubyMotion:UIWindow backgroundColor

+0

沒關係,我只知道,因爲UIWindow繼承自UIView,它也繼承了backgroundColor屬性。 –

+0

然後將其作爲您的問題的答案將其從未解答的列表中解決。 – Linuxios

回答

1

(這僅僅是提問者所說的解決他的問題 - 我只是想這個問題,下車未答覆頁)

的解決方案,如刊登的提問者,是:

沒關係,我只知道,因爲UIWindow繼承自 UIView,它也繼承了backgroundColor屬性。