2012-08-09 59 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]; 
相关问题