iOS:新时将视图向下推



当将内容框添加到视图中时,向下推一个框的好方法是什么?当另一个框从视图中移开时,将内容框推回页面顶部的好方法是什么?

编辑:在任何地方都有这样的例子吗?

如果我理解这一点,你可以使用动画来做你所追求的事情......

[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 */
}

最新更新