如何初始化 IKImageView?
我完全被这个问题难住了:我是 Xcode 新手,来自 Windows。我创建一个全新的 Cocoa 应用程序,在 Interface Builder 中放置一个 IKImageView,保存并启动该应用程序。 Xcode 显示应用程序图标永远弹跳,从未启动。如果我追踪它,我会立即发现应用程序崩溃。
我已经从 Apple 下载了示例,但我看不到它们如何初始化 IKImageView(如果这是我未能做到的)。我几个小时以来一直在寻找解决方案。帮助?
I am completely stumped with this one: I'm new to Xcode, coming from Windows. I create a brand new Cocoa app, place an IKImageView in Interface Builder, save and launch the app. Xcode shows the app icon bouncing forever, never launching. If I trace into it I get application crash right away.
I've downloaded examples from Apple but I cannot see how they initialize IKImageView, if that's what I'm failing to do. I've been searching for a solution for hours. Help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题是您没有包含 IKImageView 使用的所需框架。只需按照 Image Kit 编程指南,特别是标记为在 Xcode 中使用 Image Kit 的部分,您应该没有问题。
The problem is that you are not including the required frameworks that are used by IKImageView. Just follow the instructions that are found in the Image Kit Programming Guide, in particular the section labeled Using the Image Kit in Xcode and you should have no problems.