• 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: Jamie Montgomerie <email@hidden>
  • Date: Wed, 22 Apr 2015 10:03:12 -0700

> On Apr 20, 2015, at 6:37 PM, M Pulis <email@hidden> wrote:
>
> Sure...
>
> BYOV - build your own view:
>
> Create a custom UIViewController, pop in a UITextField and a couple of buttons.
> Works on all versions, done in under an hour max….

There’s no need to do that!  You already brought up the use of UIAlertViewStyleSecureTextInput.  If you look at the documentation (or even just the header), you’ll see a UIAlertViewStylePlainTextInput too.

-setAlertViewStyle: and -textFieldAtIndex: are public, supported APIs: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAlertView_Class/index.html

I would encourage using UIAlertController though if you can - it’s where the future lies, and its text field API is a little nicer.

Jamie.

> Good Luck!
>
> Gary
> ...working in a code mind...
>
> On Apr 20, 2015, at 4:18 PM, Michael Crawford wrote:
>
>> Is there a way to prompt for a text string?
>> 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 4:12 PM, Kyle Sluder <email@hidden> wrote:
>>> On Mon, Apr 20, 2015, at 05:59 PM, Michael Crawford wrote:
>>>> The method for iOS 5 and later on this page looks good:
>>>
>>> Please stop reaching in to the UIAlertView hierarchy. As has been
>>> documented forever, this is not supported.
>>>
>>> --Kyle Sluder


_______________________________________________

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: M Pulis <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>)
 >Re: UIAlertView has zero bounds (From: Michael Crawford <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: M Pulis <email@hidden>)

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