画面翻转功能

This commit is contained in:
kai60
2021-06-15 17:57:33 +08:00
parent 8a26ec038a
commit ef2a9df605
7 changed files with 41 additions and 8 deletions
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "revert.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "revert@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "revert@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1022 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

@@ -25,7 +25,7 @@
// CFShow((__bridge CFTypeRef)(infoDic));
NSString *app_Version=[infoDic objectForKey:@"CFBundleShortVersionString"];
NSLog(@"app_Version%@",app_Version);
app_Version=@"4.7.12";
app_Version=@"4.7.13";
NSString *versionStr = [NSString stringWithFormat:@"v%@",app_Version];
NSString *buildVersion = [infoDic objectForKey:@"CFBundleVersion"];
if (buildVersion.length > 0) {
@@ -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];
}