问题描述
iOS开发人员在这里有点新人,对我来说很陌生。
Bit of an iOS dev newcomer here, so bare with me.
我的故事板中有一个Table View Controller对象,但我已经成功了一个名为StaticDetailViewController的自定义类,我创建它作为UITableViewController的子类。
I've got a Table View Controller object in my Storyboard, but I've made it a custom class called StaticDetailViewController, which I created as a subclass of UITableViewController.
然而,当我从视图中拖动到助手视图中的.h文件时,没有连接选项出现。这是为什么?
However, when I go to drag from the view to the .h file in the Assistant view, no connection option appears. Why is this?
我希望我已经包含了所有信息,如果我错过了任何内容,这里是整个Xcode项目:
I hope I've included all the information, here's the whole Xcode project if I've missed anything: http://cl.ly/2l063d2T0a18
推荐答案
您必须在.h文件中打开和关闭@interface的花括号。出于某种原因,它不会让你使用助理编辑器控制拖动,除非你这样做...(截图)
You have to open and close your curly braces for your @interface in the .h file. For some reason it won't let you control drag using the assistant editor unless you do so... (screenshot)
这篇关于它不允许我创建一个插座的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!