Frame property of UIView is not getting assigned inside animation on iOS
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: In my iOS app I'm trying to perform following simple animation: - ( void ) dismissToolbar { NSLog (@ "bx: %f by: %f bw: %f bh: %f " , toolbar . frame . origin . x , toolbar . frame . origin . y , toolbar . frame . size . width , toolbar . frame . size . height ); CGRect tempRect = CGRectMake ( 0 , toolbar . frame . origin . y + toolbar . frame . size . height , toolbar . frame . size . width , toolbar . frame . size . height ); [ UIView animateWithDuration : animationsDuration delay : 0 options :