I am building a simple app in xcode 3, but don't know how to code the appmenu items. I have a few simple items that need codes - open and print. Close and minimise are done automatically. Can anybody tell me how to programme these items so that they can be actioned in the app?
相关问题
- Xcode debugger displays incorrect values for varia
- Image loads in simulator but not device?
- importing files from other directories in xcode
- XCode Server: Opening import file for module '
- create tableview inside tableviewcell using swift
相关文章
- 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
- Converting (u)int64_t to NSNumbers
-
The file “
.app” couldn’t be opened becaus
basically you need to declare you actions/functions as IBActions so you can link them in the Interface Builder.
for example, you declare you functions like:
The IBAction is really just a nil, but it tells the Interface builder that this is available for linking. The (id)sender tells XCode which object triggered the action.
Hard to explain without screenshots, but here is a quick tutorial for you: http://juliuspaintings.co.uk/cgi-bin/paint_css/animatedPaint/002-MenuApp.pl