• 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: Kyle Sluder <email@hidden>
  • Date: Mon, 20 Apr 2015 11:02:55 -0500

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 Roland said.

But also:

>    - (IBAction) button: (id) sender
>    {
>     [ --- snip --- ]
>
>     [alertView show];
>
>       CFRunLoopRun();
>

Why are you doing this? There is already a running runloop on the main
thread. You pretty much never want to nest runloop invocations like
this, especially on iOS.

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

  • Prev by Date: Re: Thousands of leaked CGContext ?
  • Next by Date: Re: Thousands of leaked CGContext ?
  • Previous by thread: Re: UIAlertView has zero bounds
  • Next by thread: Re: UIAlertView has zero bounds
  • Index(es):
    • Date
    • Thread