Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c5b316ce
由
cgx
编写于
2022-04-13 10:00:26 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修复 iOS 15适配 bug
1 个父辈
3c6bf45e
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
24 行增加
和
3 行删除
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
DreamSleep/DreamSleep.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
DreamSleep/DreamSleep/HomeModule/Home/View/HomeHeaderView.m
DreamSleep/DreamSleep/HomeModule/Home/View/HomeTableView.m
DreamSleep/DreamSleep/Main/AppDelegate.m
DreamSleep/DreamSleep/Utils/PrefixHeader.pch
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
查看文件 @
c5b316c
...
...
@@ -898,7 +898,7 @@
GENERATE_INFOPLIST_FILE = YES;
HEADER_SEARCH_PATHS = "$(inherited)/**";
INFOPLIST_FILE = DreamSleep/DSConfig/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "小梦睡眠
-Dev
";
INFOPLIST_KEY_CFBundleDisplayName = "小梦睡眠";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
...
...
@@ -1004,7 +1004,7 @@
GENERATE_INFOPLIST_FILE = YES;
HEADER_SEARCH_PATHS = "$(inherited)/**";
INFOPLIST_FILE = DreamSleep/DSConfig/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "小梦睡眠-
Dev
";
INFOPLIST_KEY_CFBundleDisplayName = "小梦睡眠-
Beta
";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
...
...
DreamSleep/DreamSleep.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
0 → 100644
查看文件 @
c5b316c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
PreviewsEnabled
</key>
<false/>
</dict>
</plist>
DreamSleep/DreamSleep/HomeModule/Home/View/HomeHeaderView.m
查看文件 @
c5b316c
...
...
@@ -29,7 +29,7 @@
[
self
.
barnnerView
freshCarousel
];
});
[
self
addSubview
:
self
.
dsMiddleView
];
[
self
addSubview
:
self
.
dsMiddleView
];
}
return
self
;
}
...
...
DreamSleep/DreamSleep/HomeModule/Home/View/HomeTableView.m
查看文件 @
c5b316c
...
...
@@ -22,6 +22,10 @@
self
.
dk_backgroundColorPicker
=
DKColorPickerWithKey
(
VCViewBG
);
self
.
separatorStyle
=
UITableViewCellSeparatorStyleNone
;
self
.
showsVerticalScrollIndicator
=
NO
;
// iOS 15适配UITableView内容自动下移22像素BUG
if
(
@available
(
iOS
15
.
0
,
*
))
{
self
.
sectionHeaderTopPadding
=
0
;
}
[
self
.
homeDataSource
addDataArray
:[
SafeSleepModel
getDatas
]];
self
.
mj_header
=
[
DSGifHeader
headerWithRefreshingBlock
:
^
{
dispatch_after
(
5
.
0
,
dispatch_get_main_queue
(),
^
{
...
...
DreamSleep/DreamSleep/Main/AppDelegate.m
查看文件 @
c5b316c
...
...
@@ -28,6 +28,7 @@
// self.window.rootViewController = navi;
[
self
initWeChat
];
[
self
initYTKNetwork
];
return
YES
;
}
...
...
@@ -47,6 +48,13 @@
// }];
}
-
(
void
)
initYTKNetwork
{
YTKNetworkConfig
*
config
=
[
YTKNetworkConfig
sharedConfig
];
config
.
baseUrl
=
ServerURL
;
config
.
cdnUrl
=
@""
;
DSLog
(
@"ServerURL:%@"
,
ServerURL
);
}
-
(
BOOL
)
application
:
(
UIApplication
*
)
app
openURL
:
(
NSURL
*
)
url
options
:
(
NSDictionary
<
UIApplicationOpenURLOptionsKey
,
id
>
*
)
options
{
return
[
WXApi
handleOpenURL
:
url
delegate
:
self
];
}
...
...
DreamSleep/DreamSleep/Utils/PrefixHeader.pch
查看文件 @
c5b316c
...
...
@@ -17,6 +17,7 @@
#import <DKNightVersion/DKNightVersion.h>
#import <Masonry/Masonry.h>
#import <YTKNetwork/YTKNetwork.h>
#import "UIView+Extras.h"
#import "UILabel+Extras.h"
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论