• 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: UITextField width of UIAlertController -addTextFieldWithConfigurationHandler:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UITextField width of UIAlertController -addTextFieldWithConfigurationHandler:


  • Subject: Re: UITextField width of UIAlertController -addTextFieldWithConfigurationHandler:
  • From: Saagar Jha <email@hidden>
  • Date: Mon, 20 Mar 2017 22:05:31 -0700

I haven’t tested this, but have you tried calling [self layoutIfNeeded] in the completion block of [self presentViewController:animated:completion]?

Saagar Jha

> On Mar 20, 2017, at 16:09, Carl Hoefs <email@hidden> wrote:
>
> iOS 10.2.1
>
> I'm using UIAlertController -addTextFieldWithConfigurationHandler: to display an alert with a textfield.
>
> Is there any way to shorten the width of the displayed textfield? I've tried setting its frame/bounds, but it has no effect.
>
> -Carl
>
> _______________________________________________
>
> 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

_______________________________________________

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: UITextField width of UIAlertController -addTextFieldWithConfigurationHandler:
      • From: Carl Hoefs <email@hidden>
References: 
 >UITextField width of UIAlertController -addTextFieldWithConfigurationHandler: (From: Carl Hoefs <email@hidden>)

  • Prev by Date: Opening custom files (iOS) from web
  • Next by Date: Re: Unicode filenames with Apple File System and UIManagedDocument
  • Previous by thread: UITextField width of UIAlertController -addTextFieldWithConfigurationHandler:
  • Next by thread: Re: UITextField width of UIAlertController -addTextFieldWithConfigurationHandler:
  • Index(es):
    • Date
    • Thread