2012-08-09 82 views

回答

0

拿在IKImageBrowserView documentation看看 「視圖選項鍵」。我認爲IKImageBrowserSelectionColorKey應該做的。

所以,你的代碼會是這樣的awakeFromNib您的視圖控制器:

[imageBrowserView setValue:[NSColor blueColor] forKey:IKImageBrowserSelectionColorKey]; 
+0

這改變了標題高亮顯示的顏色。我正在尋找的是圖像視圖的亮點。我用一張我正在談論的照片更新了我的問題。 – Chris 2012-08-14 21:57:09

+2

爲了獲得這種效果,我認爲你必須走複雜的路線。您需要實現自定義的IKImageBrowserView類,該類實現 - (IKImageBrowserCell *)newCellForRepresentedItem:(id)anItem,並且該方法需要返回實現 - (CALayer *)layerForType:(NSString *)類型的自定義單元對象。請參閱http://developer.apple.com/legacy/mac/library/#samplecode/ImageKitDemo/Listings/Step7_ImageBrowserCell_m.html – combinatorial 2012-08-15 04:53:57

0
[imageBrowserView setValue:[NSColor blueColor] forKey:IKImageBrowserCellsOutlineColorKey]; 
相關問題