Sorry, I mostly copied your code and moved things around. Try -setNeedsLayout
instead of -layoutIfNeeded.
> On Dec 28, 2016, at 9:58 PM, Doug Hill wrote:
>
> Hello Steve,
>
> FWIW, I’ve tried both ways and it doesn’t seem to affect the problem I’m
> having. However,
Hello Steve,
FWIW, I’ve tried both ways and it doesn’t seem to affect the problem I’m
having. However, Apple says to update constraints than do the animation block
with layoutIfNeeded, according to this WWDC session:
https://developer.apple.com/videos/play/wwdc2012/228/?id=228
On Dec 28, 2016, at 20:26:52, Rob Petrovec wrote:
>
> You need to specify the scroll direction via -scrollDirection and return an
> NSSize large enough for a scroll bar from -collectionViewContentSize. Hope
> that helps.
-scrollDirection is a method only available for
> On Fri, Dec 23, 2016, at 09:16 PM, Daryle Walker wrote:
> The text controls on macOS use a NSTextStorage object to retain their
> text. That object is a extension of an attributed string. Let's say you
> use a NSString (or similar) in your document model. How should I get
> changes on one string
You need to specify the scroll direction via -scrollDirection and return an
NSSize large enough for a scroll bar from -collectionViewContentSize. Hope
that helps.
—Rob
> On Dec 23, 2016, at 11:23 AM, Steve Mills wrote:
>
> I'm using a custom layout subclass because I want
I have always put the thing that I'm animating into the animation block:
- (IBAction)animateIt:(id)sender
{
static BOOL small = NO;
small = !small;
CGFloat newWidth = small ? self.view.frame.size.width / 2 :
self.view.frame.size.width;
[UIView
Hi Ken,
I uploaded a sample project here:
https://github.com/djfitz/TestAutolayoutAnimations
I tried to strip this down to what is needed to show the behavior I see.
My code to actually do the animation is this:
- (IBAction)animateIt:(id)sender
{
static BOOL small = NO;
if(
On Dec 28, 2016, at 1:55 PM, Doug Hill wrote:
>
> I can now animate my constraint changes but I notice that subviews aren't
> animated. For example, I have a single view with a width constraint, and this
> view has a label as a subview that expands to the size of it's
I had a previous question to the list about animating autolayout constraint
changes at runtime. The documentation on this is a little thin and was grateful
for the list's suggestions on the correct way to do this.
I can now animate my constraint changes but I notice that subviews aren't