2012-01-09 100 views

回答

5

没有为没有API,但它是相当简单的动画: 只需创建一个UIView和动画的frame,从0高度变化对全高:

// Create your view 
    UIView *kPview = [[UIView alloc] init]; 
    // Add it to your view 
    [self.view addSubView:kPview] 
    // Set its frame 
    kPview.frame = CGRectMake(0,0,320,0); 

    //Set the animation 
    [UIView animateWithDuration:5 
       animations:^{ 
        kPview.frame = CGRectMake(0,0,320,460); 
       } 
       completion:^(BOOL finished){ 
        //add a UILabel with the warning. 
       }]; 
+0

爽!而已。谢谢。 – timy 2012-01-09 15:58:51