How can I get a textfield value from alertview in viewdidload function? and I want to use it in another function… Lets say the alertview text is myAlertviewText, then I want to use it in a different function as
NSString *outputfilename = [documentDirectory stringByAppendingPathComponent:myAlertviewText.text];
This is actually pretty simple, use one of UIAlertView’s delegate methods, and you can directly get the text value of the text view. Assuming that you’ve used an input alert view.