• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UIAlertView has zero bounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIAlertView has zero bounds


  • Subject: Re: UIAlertView has zero bounds
  • From: Michael Crawford <email@hidden>
  • Date: Mon, 20 Apr 2015 15:59:43 -0700

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
email@hidden
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 <email@hidden> 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
> email@hidden
> 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 <email@hidden> wrote:
>> Michael David Crawford, Consulting Software Engineer
>> email@hidden
>> 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 <email@hidden> 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 (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: UIAlertView has zero bounds
      • From: Kyle Sluder <email@hidden>
References: 
 >UIAlertView has zero bounds (From: Michael Crawford <email@hidden>)
 >Re: UIAlertView has zero bounds (From: Roland King <email@hidden>)
 >Re: UIAlertView has zero bounds (From: Kyle Sluder <email@hidden>)
 >Re: UIAlertView has zero bounds (From: Michael Crawford <email@hidden>)
 >Re: UIAlertView has zero bounds (From: Michael Crawford <email@hidden>)

  • Prev by Date: Re: UIAlertView has zero bounds
  • Next by Date: Re: UIAlertView has zero bounds
  • Previous by thread: Re: UIAlertView has zero bounds
  • Next by thread: Re: UIAlertView has zero bounds
  • Index(es):
    • Date
    • Thread