我想在IKImageEditPanel
没有双击的情况下调用IKImageView
. 所以我这样调用。
- (IBAction)imageProperties:(id)sender {
IKImageEditPanel *editor = [IKImageEditPanel sharedImageEditPanel];
[editor setFrameOrigin:NSMakePoint(400,200)];
[editor setDataSource:self]; // I have set the DataSource.
[editor makeKeyAndOrderFront:nil];
}
这是我的 DataSource 方法..
- (CGImageRef)image {
return imageView.image; // imageView is my IKImageView
}
- (void)setImage: (CGImageRef)image imageProperties: (NSDictionary *)metaData {
[imageView setImage:image imageProperties:metaData];
}
这可以正常工作,但与默认设置相比非常慢IKImageEditPanel
(使用双击调用)。访问的正确方法是IKImageEditPanel
什么?