需要帮助请更改动画

时间:2019-06-09 16:47:53

标签: ios objective-c iphone tweak

我想更改窗口动画。按住“关机”按钮然后出现“关机”窗口以进行选择时,是否可以更改类似于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];
}

0 个答案:

没有答案