我想更改窗口动画。按住“关机”按钮然后出现“关机”窗口以进行选择时,是否可以更改类似于iPhone的动画
/*
Animate in
*/
CGRect rect = CGRectMake(self.view.frame.origin.x, self.view.frame.origin.y, self.view.frame.size.width, self.view.frame.size.height);
rect.origin.x = rect.origin.x - 300;
[UIView animateWithDuration:0.3
delay:0.0
options:UIViewAnimationCurveEaseIn
animations:^{
self.view.frame = rect;
}
completion: nil];
}