• 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: iOS 8 beta 4 messes with my TextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS 8 beta 4 messes with my TextView


  • Subject: Re: iOS 8 beta 4 messes with my TextView
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 31 Jul 2014 13:02:16 +0200

On 30 Jul 2014, at 04:55, Gerriet M. Denkmann <email@hidden> wrote:
> On 29 Jul 2014, at 22:06, Kyle Sluder <email@hidden> wrote:
>
>> On Jul 29, 2014, at 1:58 AM, "Gerriet M. Denkmann" <email@hidden> wrote:
>>>
>>> Master Detail app, works fine in 7.1.2.
>>> The Detail View has a UITextView.
>>> Whenever I get a Keyboard Notification (Changed) I change the height of the TextView accordingly.
>>>
>>> All would be fine; but after all Notifications have been delivered and before I can start typing, some evil agent resets the height of my TextView back to the old (and now, with a keyboard present, much too big) value.
>>
>
>>> Any known work-arounds?
>>
>> You probably shouldn't be changing the frame of your text view. Rather, set its contentInset.
>
> You are right (as was Scott, when he suggested that there was a tug of war between me and auto-layout).

 In general, whenever you use auto layout, you should stop changing frames directly. AutoLayout assumes it is the only one changing frames. You may have gotten away lucky so far, but whatever causes a re-layout (e.g. a "return to the phone call" bar popping up) could undo your frame change. You should *always* modify the constraints, intrinsic sizes etc. on an object instead of the frame when using auto-layout.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de


_______________________________________________

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: 
 >iOS 8 beta 4 messes with my TextView (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: iOS 8 beta 4 messes with my TextView (From: Kyle Sluder <email@hidden>)
 >Re: iOS 8 beta 4 messes with my TextView (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Modal Panel from Modal Window
  • Next by Date: Re: Auto layout and scroll views on OS X
  • Previous by thread: Re: iOS 8 beta 4 messes with my TextView
  • Next by thread: How to constrain a UISlider in a UIToolbar?
  • Index(es):
    • Date
    • Thread