我在只有Mac10.9的应用程序中使用IKImageBrowserView。
当我双击IKImageBrowserView中的一个项目时,该项目将在预览中打开。
我想改变这种行为,并打开一个窗口,我自己的应用程序详细信息,而不是双倍的项目。
我怎样才能简单地禁用IKImageBrowserView的双击行为?
添加我自己的双击行为的最佳方法是什么?
发布于 2014-05-23 13:14:04
根据苹果的文件,您需要为IKImageBrowserView设置一个委托,并且可以在cellWasDoubleClicked方法中添加自定义实现。
- (void) imageBrowser:(IKImageBrowserView *) aBrowser cellWasDoubleClickedAtIndex:(NSUInteger) index {
// This method signals that the user double-clicked an item in the image browser view.
// You can implement this method if you want to perform custom tasks at that time.
}https://stackoverflow.com/questions/23824474
复制相似问题