| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
This question is not valid for this list as it's a framework specific question. Please take it somewhere else like the Cocoa mailing list. That being said, your mistake is thinking the button passes its value to your action method. First there's no such thing as a "button's value", and what you're talking about is the button's title. Second, the object being passed to your, and any other action method, is the *sender* of the action, which is the button object itself in this case. To get the button's title you'll call the appropriate method on it (probably -title but I'm not that familiar with UIKit), and define your action method like this: - (void) insertButtonValue:(id)sender; Ofri On 07/04/2008, at 15:10, Matthew Pearson wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Objc-language mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/objc-language/email@hidden This email sent to email@hidden
| References: | |
| >HELP: with UIButton actions (new to objective c and iphone dev) (From: Matthew Pearson <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.