An animation block that calls the subviews updateConstraints method
2015-06-03 17:45
204 查看
原文链接:http://www.cnblogs.com/newBlash/p/4549816.html
[self.view layoutIfNeeded]; [self.subView setNeedsUpdateConstraints]; [self.subView updateConstraintsIfNeeded]; [UIView animateWithDuration:1.0f delay:0.0f options:UIViewAnimationOptionLayoutSubviews animations:^{ [self.view layoutIfNeeded]; } completion:nil];
转载于:https://www.cnblogs.com/newBlash/p/4549816.html
相关文章推荐
- 删除tableview的section遇到crash:The number of rows contained in an existing section after the update
- (MS)Design an algorithm to find the maximum subsquare such that all four borders are filled with bla
- 利用Mysql进行update时,出现You have an error in your SQL syntax check the manual that corresponds to your My
- 91.View the Exhibit to examine the error that occurred during the database startup. You opened an RM
- The view didn't return an HttpResponse object. It returned None instead. Request Method: POST
- Cannot make a static reference to the non-static method setInAnimation(Animation) from the type View
- How to add subview to a webview so that the subview would scroll along with webview?
- orcale数据库 update 语句报错ERROR: Cannot parallelize an UPDATE statement that updates the distribution col
- ERROR : Cannot parallelize an UPDATE statement that updates the distribution columns
- CodeIgniter报错: You must use the "set" method to update an entry
- Question 30: What is the order of destructor calls for an object of class Y inherited from class X that has an object of class A
- Getting the ID of the element that fired an event using jQuery
- Only the original thread that created a view hierarchy can touch its views.
- Adapter.notifydatasetChanged()没有用的解决方法;Only the original thread that created a view hierarchy 。。。。
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclas
- MyEclipse Servers视窗出现“Could not create the view: An unexpected exception was thrown”错误解决办法
- The JSP specification requires that an attribute name is preceded by whitespace
- You have an error in your SQL syntax; check the manual that corresponds to your
- Could not find method update(View) in a parent or ancestor Context for android:onClick attribute def
- How to invoke the method of managed bean and render view in JSF when we are outside the lifecycle of JSF