Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit a06f6f09
由
cgx
编写于
2022-04-20 14:43:11 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修复转场动画tabbar跳动bug
1 个父辈
833179f6
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
26 行增加
和
8 行删除
DreamSleep/DreamSleep/Launcher/LeadingController.m
DreamSleep/Pods/Pods.xcodeproj/project.pbxproj
DreamSleep/DreamSleep/Launcher/LeadingController.m
查看文件 @
a06f6f0
...
@@ -39,14 +39,32 @@
...
@@ -39,14 +39,32 @@
kSetUserDefaultsBOOL
(
YES
,
IsFirstGuide
);
kSetUserDefaultsBOOL
(
YES
,
IsFirstGuide
);
kUserDefaultsSynchronize
;
kUserDefaultsSynchronize
;
// 切换到主tabvc
// 切换到主tabVC
UIStoryboard
*
mainStoryBoard
=
[
UIStoryboard
storyboardWithName
:
@"Main"
bundle
:
nil
];
UIStoryboard
*
mainStoryBoard
=
[
UIStoryboard
storyboardWithName
:
@"Main"
bundle
:
nil
];
[
UIView
transitionWithView
:
DSKeyWindow
UIView
*
snapShot
=
[
DSKeyWindow
snapshotViewAfterScreenUpdates
:
YES
];
duration
:
0
.
5
UIViewController
*
rootVC
=
[
mainStoryBoard
instantiateViewControllerWithIdentifier
:
@"mainSB"
];
options
:
UIViewAnimationOptionTransitionFlipFromLeft
[
rootVC
.
view
addSubview
:
snapShot
];
animations
:^
{
DSKeyWindow
.
rootViewController
=
rootVC
;
DSKeyWindow
.
rootViewController
=
[
mainStoryBoard
instantiateViewControllerWithIdentifier
:
@"mainSB"
];
[
UIView
animateWithDuration
:
0
.
5
animations
:
^
{
}
completion
:
nil
];
snapShot
.
layer
.
opacity
=
0
;
snapShot
.
layer
.
transform
=
CATransform3DMakeScale
(
1
.
5
,
1
.
5
,
1
.
5
);
}
completion
:^
(
BOOL
finished
)
{
[
snapShot
removeFromSuperview
];
}];
// UIStoryboard * mainStoryBoard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
// [UIView transitionWithView:DSKeyWindow
// duration:0.3
// options:UIViewAnimationOptionCurveLinear
// animations:^{
// DSKeyWindow.rootViewController = [mainStoryBoard instantiateViewControllerWithIdentifier:@"mainSB"];
// } completion:nil];
// [UIView transitionWithView:DSKeyWindow
// duration:0.3
// options:UIViewAnimationOptionTransitionNone
// animations:^{ DSKeyWindow.rootViewController = [mainStoryBoard instantiateViewControllerWithIdentifier:@"mainSB"]; }
// completion:nil];
}
}
@end
@end
DreamSleep/Pods/Pods.xcodeproj/project.pbxproj
查看文件 @
a06f6f0
此文件的差异被折叠,
点击展开。
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论