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
. What reason is there for this? Why can't I control-drag a UIView in the storyboard to present a controller?
Using the Xcode interface builder through storyboard you need to add a gesture to the UIView.
Hope that solves your problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.