画面翻转功能
This commit is contained in:
+13
-3
@@ -673,7 +673,7 @@ Strong UIImage *screenShotImage;//截图
|
||||
#pragma mark- 下拉菜单
|
||||
-(MessageAlertView *)popView{
|
||||
if (!_popView) {
|
||||
_popView = [[MessageAlertView alloc]initWithFrame:RECT(screen_width - kSizeFrom750(220), 0, kSizeFrom750(220), kSizeFrom750(270))];
|
||||
_popView = [[MessageAlertView alloc]initWithFrame:RECT(screen_width - kSizeFrom750(220), 0, kSizeFrom750(220), kSizeFrom750(337.5))];
|
||||
WEAK_SELF;
|
||||
//点击
|
||||
_popView.comboxBlock = ^(NSInteger tag) {
|
||||
@@ -705,6 +705,16 @@ Strong UIImage *screenShotImage;//截图
|
||||
[weakSelf.view makeToast:@"设备已离线"];
|
||||
}
|
||||
}
|
||||
else if (tag == 4){
|
||||
//翻转
|
||||
[UIView animateWithDuration:2.0f animations:^{
|
||||
weakSelf.player.viewController.view.transform = CGAffineTransformMakeRotation(M_PI);
|
||||
|
||||
} completion:^(BOOL finished) {
|
||||
|
||||
}];
|
||||
|
||||
}
|
||||
[weakSelf popAppear];//隐藏弹出框
|
||||
};
|
||||
}
|
||||
@@ -727,8 +737,8 @@ Strong UIImage *screenShotImage;//截图
|
||||
[self.view addSubview:self.popView];
|
||||
NSArray *titleImgs =nil;
|
||||
NSArray *titles=nil;
|
||||
titleImgs = @[@"ifishdropview_edite_device",@"ifishdropview_delect_device",@"Ifish_share_device",@"equipment_icon_equipmentupdate"];
|
||||
titles=@[@"修改名称",@"删除设备",@"分享设备",@"设备升级"];
|
||||
titleImgs = @[@"ifishdropview_edite_device",@"ifishdropview_delect_device",@"Ifish_share_device",@"equipment_icon_equipmentupdate",@"revert"];
|
||||
titles=@[@"修改名称",@"删除设备",@"分享设备",@"设备升级",@"图像翻转"];
|
||||
[self.popView loadInfoWithTitle:titles Icons:titleImgs];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user