NSImageView image aspect fill?
问题 So I am used to UIImageView , and being able to set different ways of how its image is displayed in it. Like for example AspectFill mode etc... I would like to accomplish the same thing using NSImageView on a mac app. Does NSImageView work similarly to UIImageView in that regard or how would I go about showing an image in an NSImageView and picking different ways of displaying that image? 回答1: You may find it much easier to subclass NSView and provide a CALayer that does the aspect fill for