• 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: M Pulis <email@hidden>
  • Date: Wed, 22 Apr 2015 12:49:07 -0700

Yep.... good stuff. I forgot about those.... been on iOS8 too long - have converted all my code to UIAlertController(s).

But the OP won't use UIAlertController to be backwards compatible and (I guess) had not seen those calls.


Gary



On Apr 22, 2015, at 10:03 AM, Jamie Montgomerie wrote:


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


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>)
 >Re: UIAlertView has zero bounds (From: Jamie Montgomerie <email@hidden>)

  • Prev by Date: Re: UIAlertView won't set password field as first responder
  • Next by Date: RE: Converting to Window Coordinates
  • Previous by thread: Re: UIAlertView has zero bounds
  • Next by thread: NIB for Cocoa Standard Alert Sheet
  • Index(es):
    • Date
    • Thread