Here’s my .h file:
The IBOutlet I am having problems with is the textbox. I would like to retain the value in the textbox as an NSString:
@interface UploaderViewController : UIViewController <UINavigationControllerDelegate, UIImagePickerControllerDelegate> {
IBOutlet UIImageView *imageView;
IBOutlet UITextField *textCaption;
NSString *caption;
}
- (IBAction)pushPick;
- (IBAction)pushUpload;
@property (nonatomic, retain) IBOutlet UITextField *textCaption;
@end
Where the value is stored in this NSString:
- (IBAction)pushUpload {
caption = textCaption.text;
}
I think you meant to do something like this: