[英]Control-drag UIView in Storyboard to present a controller?
I know it's possible to control-drag a table view cell in order to present a controller from the storyboard, but I can't seem to be able to do the same for a UIView
.我知道可以控制拖动表格视图单元格以从 storyboard 中显示 controller,但我似乎无法对
UIView
执行相同操作。 What reason is there for this?这有什么原因? Why can't I control-drag a UIView in the storyboard to present a controller?
为什么我不能控制拖动 storyboard 中的 UIView 来呈现 controller?
Using the Xcode interface builder through storyboard you need to add a gesture to the UIView.通过 storyboard 使用 Xcode 界面构建器,您需要向 UIView 添加手势。
Hope that solves your problem.希望能解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.