iOS 8自动布局帧动画错误

iOS 8自动布局帧动画错误,ios,objective-c,animation,ios8,xcode6,Ios,Objective C,Animation,Ios8,Xcode6,视图中未使用自动布局。下面的代码在我的应用程序iOS7中正常工作。它向上设置了几个对象的帧的动画。但是,现在它会按预期设置动画,但动画完成后会立即恢复 [UIView animateWithDuration:(animated) ? 1.0 : 0.0 animations:^{ numberEntry.alpha = 0.0; instrTextOne.alpha = 0.0; numberEntry.frame = CGRectOffs

视图中未使用自动布局。下面的代码在我的应用程序iOS7中正常工作。它向上设置了几个对象的帧的动画。但是,现在它会按预期设置动画,但动画完成后会立即恢复

    [UIView animateWithDuration:(animated) ? 1.0 : 0.0 animations:^{
        numberEntry.alpha = 0.0;
        instrTextOne.alpha = 0.0;
        numberEntry.frame = CGRectOffset(numberEntry.frame, 0, -100);
        instrTextTwo.alpha = 1.0;
        instrTextTwo.frame = CGRectOffset(instrTextTwo.frame, 0, -100);
        phoneEntryBg.alpha = 0.0;
        phoneEntryBg.frame = CGRectOffset(phoneEntryBg.frame, 0, -100);
        codeEntryBg.frame = CGRectOffset(codeEntryBg.frame, 0, -100);
        codeEntryBg.alpha = 1.0;
        seperator.alpha = 0.0;
    } completion:^(BOOL finished) {
        numberEntry.text = @"";
        numberEntry.alpha = 1.0;
    }];

有人能告诉我我可能做错了什么吗?这里有更好的做法吗?

您是说您对某些视图使用自动布局,而不是其他视图?这似乎可能会导致问题-它不能很好地处理视图的编程操作。不,我使用的不是自动布局!客户不想也不关心iPhone4的兼容性,而这又回到了iPhone4和iPhone5的时代。