0

这是我的项目:链接

我想将所选视图与类 ViewController 连接起来。但它不起作用。为什么?

4

2 回答 2

1

It is a UITableViewController. So make your ViewController extending UITableViewController. or drag and drop a UIViewController and write the class.

Go to ViewController.h

It should show :@interface ViewController : UIViewController

Make it : @interface ViewController : UITableViewController

Once you have made this change you will be able to select 'ViewController' in interface builder as the Class.

于 2013-08-15T09:22:01.733 回答
0

将类更改为 ViewController (即您发布的图像中视图控制器的类名。)

您发布的课程链接

于 2013-08-15T09:25:26.807 回答