小编Mac*_*zko的帖子

无法实例化名为GLKView的类

我有这个例外:

2014-02-19 19:08:34.590 MyApp[42353:70b] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named GLKView'
Run Code Online (Sandbox Code Playgroud)

这是因为我尝试以这种方式向我的xib文件添加GL视图:

在此输入图像描述

我想要实现的是在视图下方绘制渐变背景(带有标签'City'的背景)

这可能是一个常见的例外,因为任何更有经验的iOS开发人员都可以告诉我,我不知道自己在做什么.

我的问题:

  1. 为何出现此错误消息?
  2. 是否可以添加GLKit View?
  3. 添加渐变背景的更好方法是什么?

ios ios7 xcode5

3
推荐指数
1
解决办法
1001
查看次数

标签 统计

ios ×1

ios7 ×1

xcode5 ×1