The method for iOS 5 and later on this page looks good:

http://stackoverflow.com/questions/7015842/how-to-prompt-user-for-text-input-in-alert-view

UIAlertView *alertView = [[UIAlertView alloc]
initWithTitle:@"Password" message:@"Enter your password:"
delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok",
nil];
alertView.alertViewStyle = UIAlertViewStyleSecureTextInput;
UITextField *passwordTextField = [alertView textFieldAtIndex:0];
[alertView show];

in the above case they're prompting for a password, I don't need the
secure input as it is just a filename.
Michael David Crawford, Consulting Software Engineer
mdcrawf...@gmail.com
http://www.warplife.com/mdc/

   Available for Software Development in the Portland, Oregon Metropolitan
Area.


On Mon, Apr 20, 2015 at 3:46 PM, Michael Crawford <mdcrawf...@gmail.com> wrote:
> I'm cool to implement this some other way, however UIAlertController
> was introduced in iOS 8.  I'd like to support earlier devices if I
> can.
>
> What I'm trying to accomplish is to prompt for a file name, accept an
> editable text string and have OK and Canccel buttons.
>
> Can you suggest ways to do that prior to iOS 8?
> Michael David Crawford, Consulting Software Engineer
> mdcrawf...@gmail.com
> http://www.warplife.com/mdc/
>
>    Available for Software Development in the Portland, Oregon Metropolitan
> Area.
>
>
> On Mon, Apr 20, 2015 at 3:30 PM, Michael Crawford <mdcrawf...@gmail.com> 
> wrote:
>> Michael David Crawford, Consulting Software Engineer
>> mdcrawf...@gmail.com
>> http://www.warplife.com/mdc/
>>
>>    Available for Software Development in the Portland, Oregon Metropolitan
>> Area.
>>
>>
>> On Mon, Apr 20, 2015 at 9:02 AM, Kyle Sluder <k...@ksluder.com> wrote:
>>> Why are you doing this?
>>
>> Honestly I don't remember.  This is some very old code; the best I can
>> say is that it used to work.
>>
>> I'm willing to accept that I was never supposed to modify the view
>> heirarchy but then it was Erica Sadun's advice that I should do so.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to