将图像作为子视图添加到Worldmapimage(大图像视图)。这将根据您的世界地图图像来翻译图像点。
self.pimg = [[NSImageView alloc] initWithFrame:NSMakeRect (0, 0, 30, 30)];
[self.pimg setImage: image];
//self.pimg is the pointing image to be drawn over the worldmap
[self.pimg setImageFrameStyle:NSImageFrameNone];
[self.pimg setImageScaling:NSOnState];
//Updated line of code
[self.largeImageView addSubview:self.pimg]; //Add subview to the largeimageview(world map)