I'm trying to send an alert containing the contents of a UITextField in my
- (void)applicationDidBecomeActive:(UIApplication *)application
UIAlertView *myAlert = [[UIAlertView alloc]initWithTitle:nil
message:CONTENTS OF UITEXTFIELD
delegate:nil cancelButtonTitle:@"Okay" otherButtonTitles:nil, nil];
It's a bad practice to store anything in UI. If your only source of data is some string displayed via label or text view it's a design flaw. You should store this value as text and obtain it via some public interface.
You can store some reference to the
AppDelegate or use
NSUserDefaults saving your data when app goes to background.