2012-01-09 8 views

答えて

5

は、そのためのAPIはありませんが、それはかなり単純なアニメーションです: は単にUIViewを作成し、完全な高さに0高さから変え、そのframeをアニメーション:

// 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

関連する問題