2013-05-04 40 views
0

我試圖覆蓋一個播放按鈕上的圖像的縮略圖 currentl使用顯示縮略圖:iOS6的如何組合2個圖像

if(nil != self.analysis.image) { 
    self.imageView.image = self.analysis.image; 
} 

我試圖使用縮略圖作爲背景圖像,好戲按鈕與透明度作爲圖像,但它並沒有出現在所有...

if(nil != self.analysis.image) { 
    self.imageView.backgroundColor = [UIColor colorWithPatternImage:self.analysis.image]; 
    self.imageView.image = [UIImage imageNamed:@"whiteBackground.png"]; 
} 

構成它們的最佳方法是什麼?

回答

0

我的錯!

編碼是正確的! whiteBackground.png是透明的.... 我必須使用顯示按鈕圖像....

if(nil != self.analysis.image) { 
    self.imageView.backgroundColor = [UIColor colorWithPatternImage:self.analysis.image]; 
    self.imageView.image = [UIImage imageNamed:@"displayButton.png"]; 
}