我設計的iOS 7的音樂應用程序,我想直接把「AirPlay的」路由選擇器按鈕,在我的應用程序。我能夠將按鈕放置得很好,但它不會顯示,因爲圖標是白色的,我的背景是白色的。MPVolumeView路線按鈕的iOS改色7
有沒有辦法來改變路線按鈕的顏色?
這裏是我使用創建按鈕的代碼。
self.airPlayButton = [[MPVolumeView alloc] initWithFrame:CGRectZero];
self.airPlayButton.showsVolumeSlider = NO;
[self.airPlayButton sizeToFit];
self.airPlayButton.backgroundColor = [UIColor myGreenColor];
[self addSubview:self.airPlayButton];
基本上下面的圖片是我想要的,除了我想圖標綠色,而不是它的背景。
這個伎倆!原來是相當簡單的解決方案,謝謝你指點我正確的解決方案! – jrwagz