• 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 with UITextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIAlertView with UITextField


  • Subject: Re: UIAlertView with UITextField
  • From: glenn andreas <email@hidden>
  • Date: Wed, 27 Jul 2011 15:44:45 -0500

And how well will that approach work with an updated release that moves things around to different locations?  Hint: many apps have broken with updated OS releases when system UI objects are changed internally.

Anything that hard codes in coordinate assumptions of system views is problematic - especially code like:

	[UITextField alloc] initWithFrame:CGRectMake(12.0, 45.0, 260.0, 25.0)]

or:

	CGAffineTransform translate = CGAffineTransformMakeTranslation(0.0, 130.0);
        [self setTransform:translate];

The hard coding of coordinate values also can cause problems when running the OS with a non-English language (since the metrics of different languages can be different).


On Jul 27, 2011, at 12:47 PM, Dan Hopwood wrote:

> Thanks David. And do you or does anyone else know if Apple would permit
> implementing something like the following, which gives a very similar
> result:
>
> http://iphonedevelopment.blogspot.com/2009/02/alert-view-with-prompt.html
>
> Thanks,
>
> Dan
>
>
> On Jul 27, 2011, at 18:14, David Duncan <email@hidden> wrote:
>
> On Jul 27, 2011, at 10:02 AM, Dan Hopwood wrote:
>
> This works really well and is exactly what I am looking for however a
> little reading tells me Apple may reject submissions that use this private
> API.
>
>
> Yes, you will be rejected for using private API.
> --
> David Duncan
> _______________________________________________
>
> 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

Glenn Andreas                      email@hidden
The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

_______________________________________________

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 with UITextField (From: Dan Hopwood <email@hidden>)
 >Re: UIAlertView with UITextField (From: David Duncan <email@hidden>)
 >Re: UIAlertView with UITextField (From: Dan Hopwood <email@hidden>)

  • Prev by Date: Re: Receiving unicode keyboard input
  • Next by Date: Lion's new "Resume" feature, document restoration, and splash screens
  • Previous by thread: Re: UIAlertView with UITextField
  • Next by thread: Lion's new "Resume" feature, document restoration, and splash screens
  • Index(es):
    • Date
    • Thread