Search code examples
cocoadrawrect

How to draw a default image in imageview in the center of imageView?


How to draw a default image in imageview in the center of imageView?using - (void)drawRect:(NSRect)rect overridden method of NSImageView


Solution

  • Why not just set the image view's image initially to the default image, then change it later?