gpt4 book ai didi

objective-c - 拖动输入: called but performDragOperation: not on IKImageBrowserView

转载 作者:行者123 更新时间:2023-12-03 17:10:00 24 4
gpt4 key购买 nike

我正在使用 IKImageBrowserView 设置拖放委托(delegate)

[self.imageBrowserView setDraggingDestinationDelegate:self];

无论我在 DraggingEntered 中返回什么:performDragOperation:都不会被调用

- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender {
// GETS CALLED
return NSDragOperationEvery;
}

- (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender {
// NOT CALLED
return YES;
}

- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender {
// NOT CALLED
return YES;
}

最佳答案

显然必须实现draggingUpdated:

关于objective-c - 拖动输入: called but performDragOperation: not on IKImageBrowserView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37322868/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com