将另一个框添加到视图时,推送内容框的好方法是什么?当另一个框被从视图中移除时,将内容框推回到页面顶部的好方法是什么?
编辑:在任何地方都有这样的例子吗?答案 0 :(得分:0)
如果我理解这一点,你可以使用动画来做你想做的事情......
[UIView animateWithDuration:seconds animations:^ {
//animation code here
/*so eg: box1.frame = CGrectMake(0, 0, 50, 50);
then box1 will move and shape animating by itself for however
many seconds you specify until it is at it's given position
(0,0) and a size of 50 points wide and 50 points high */
}