When I follow the instructions at How do I add an action or outlet to a class in Xcode 4.3.1?, or Apple's First iOS App tutorial, there's no option for Action. There is only options for Outlet and Outlet Connections. What am I doing wrong?
相关问题
- gactions CLI crashes on Windows when uploading goo
- Xcode debugger displays incorrect values for varia
- Image loads in simulator but not device?
- Pass code to a method as an argument
- importing files from other directories in xcode
相关文章
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Popover segue to static cell UITableView causes co
- “Storyboard.storyboard” could not be opened
- didBeginContact:(SKPhysicsContact *)contact not in
-
The file “
.app” couldn’t be opened becaus - How do I set compatible devices to only ARKit comp
You can connect actions only to subclasses of
UIControl
.You are trying to create an action from a
UIView
, which is not a subclass of UIControl and does not have actions.Start the drag from the button, and not the "main view"