It won't allow me to create an outlet

风流意气都作罢 提交于 2019-12-13 04:47:47

问题


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.

However, when I go to drag from the view to the .h file in the Assistant view, no connection option appears. Why is this?


回答1:


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)



来源:https://stackoverflow.com/questions/13830988/it-wont-allow-me-to-create-an-outlet

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!