Hi,
Will somebody help me to get an NSString from a UIText field?
This is what I'm guessing at, but I don't know where to look to see how to do this right.
... then, in the implementation, I have the following which doesn't work:
NSString string = [costDisplay textValue]; <<< warning, may not respond to -textValue
Thanks for taking the time to read my post.
-- Kaydell
Will somebody help me to get an NSString from a UIText field?
This is what I'm guessing at, but I don't know where to look to see how to do this right.
Code:
#import <UIKit/UIKit.h>
@interface MarginCalcViewController : UIViewController {
IBOutlet UITextField *costDisplay;
IBOutlet UITextField *priceDisplay;
IBOutlet UITextField *marginPercentDisplay;
}
- (IBAction) calculateCost;
- (IBAction) calculatePrice;
- (IBAction) calculateMarginPercent;
@end
... then, in the implementation, I have the following which doesn't work:
NSString string = [costDisplay textValue]; <<< warning, may not respond to -textValue
Thanks for taking the time to read my post.
-- Kaydell