IKImageView crashes the application

I am new to ObjC. Thank you in advance for your help and patience!

I am trying to add an image to a window in my application (this is OSX, not iOS). I added Image View (IKImageView) through the interface builder to the window. Then I added my image to the Xcode project and assigned it to the view.

When I try to compile the application, it crashes with the error: "cannot decode an object of class (IKImageView)."

At the time of removal of IKImageView, it compiles just fine.

My initial thought was that I did not import the required file, but this seems to be a subclass of NSView, so this should not be a problem.

Any thoughts on what I'm doing wrong?

+6
source share
1 answer
  • Select the project on the left side of Xcode.
  • You will see the Summary tab on the right side. Choose it.
  • Add Quartz.framework to the Related Structures and Libraries.
+11
source

Source: https://habr.com/ru/post/912098/


All Articles