Re: UIAlertView has zero bounds

2015-04-22 Thread M Pulis
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:

Re: UIAlertView has zero bounds

2015-04-22 Thread Jamie Montgomerie
> On Apr 20, 2015, at 6:37 PM, M Pulis 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

Re: UIAlertView has zero bounds

2015-04-20 Thread M Pulis
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 Good Luck! Gary ...working in a code mind... On Apr 20, 2015, at 4:18 PM, Michael Crawford wrote: Is there a way to pro

Re: UIAlertView has zero bounds

2015-04-20 Thread Michael Crawford
Is there a way to prompt for a text string? 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 4:12 PM, Kyle Sluder wrote: > On Mon, Apr 2

Re: UIAlertView has zero bounds

2015-04-20 Thread Kyle Sluder
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-de

Re: UIAlertView has zero bounds

2015-04-20 Thread Michael Crawford
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" othe

Re: UIAlertView has zero bounds

2015-04-20 Thread Michael Crawford
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

Re: UIAlertView has zero bounds

2015-04-20 Thread Michael Crawford
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 wrote: > Why are you doing this? Honestly I don't remember. This

Re: UIAlertView has zero bounds

2015-04-20 Thread Kyle Sluder
On Mon, Apr 20, 2015, at 05:54 AM, Roland King wrote: > 2) "The view hierarchy for this class is private and must not be > modified”. In the strictest sense adding a UITextField to the UIAlertView > is modifying the view hierarchy and thus something which you probably > shouldn’t be doing. What R

Re: UIAlertView has zero bounds

2015-04-20 Thread Roland King
> > I wrote a separate app with just one button that brings up a > UIAlertView. In the production code I create a UITextField then > center it in the UIAlertView. > > - (void) willPresentAlertView: (UIAlertView *) alertView > { >CGRect bounds = alertView.bounds; >NSLog( @"%f %f", bounds

UIAlertView has zero bounds

2015-04-19 Thread Michael Crawford
I have some code from Erica Sadun's "iPhone Developers Cookbook" that used to work. I do realize that UIAlertView is deprecated in iOS 8 - but that means it should still be present, it hasn't gone away quite yet. What I want to accomplish is to prompt the use for a filename to save a document in