ios View 向上拉界面代码
#pragma mark - 上升效果
- (void)ToUpSide {
[self moveToUpSide];//向上拉界面
}
- (void)moveToUpSide {
[UIView animateWithDuration:0.7 //速度0.7秒
animations:^{//修改rView坐标
rView.frame = CGRectMake(self.window.frame.origin.x,
-self.window.frame.size.height,
self.window.frame.size.width,
self.window.frame.size.height);
}
completion:^(BOOL finished){
}];
}
