Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 92efa994
由
cgx
编写于
2022-06-15 17:03:39 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
优化我的界面
1 个父辈
f555a88d
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
10 行增加
和
14 行删除
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
DreamSleep/DreamSleep/Class/ProfileModule/Me/ProfileTableView.m
DreamSleep/DreamSleep/Resource/introduce.webp
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
查看文件 @
92efa99
...
@@ -53,7 +53,6 @@
...
@@ -53,7 +53,6 @@
D037C49D284F5DE8000F3089 /* DailyTaskSrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = D037C49C284F5DE8000F3089 /* DailyTaskSrollView.m */; };
D037C49D284F5DE8000F3089 /* DailyTaskSrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = D037C49C284F5DE8000F3089 /* DailyTaskSrollView.m */; };
D03AE82B281A9010001C0726 /* MyFeedDetailModel.m in Sources */ = {isa = PBXBuildFile; fileRef = D03AE82A281A9010001C0726 /* MyFeedDetailModel.m */; };
D03AE82B281A9010001C0726 /* MyFeedDetailModel.m in Sources */ = {isa = PBXBuildFile; fileRef = D03AE82A281A9010001C0726 /* MyFeedDetailModel.m */; };
D0496798283484CC00FB81E5 /* ProfileTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = D0496797283484CC00FB81E5 /* ProfileTableView.m */; };
D0496798283484CC00FB81E5 /* ProfileTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = D0496797283484CC00FB81E5 /* ProfileTableView.m */; };
D049679A2834C95100FB81E5 /* introduce.webp in Resources */ = {isa = PBXBuildFile; fileRef = D04967992834C95100FB81E5 /* introduce.webp */; };
D049679D2834E1AB00FB81E5 /* ProfileHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = D049679C2834E1AB00FB81E5 /* ProfileHeaderView.m */; };
D049679D2834E1AB00FB81E5 /* ProfileHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = D049679C2834E1AB00FB81E5 /* ProfileHeaderView.m */; };
D04B3D9A27F6D4D90022F8DF /* LeadingController.m in Sources */ = {isa = PBXBuildFile; fileRef = D04B3D9827F6D4D90022F8DF /* LeadingController.m */; };
D04B3D9A27F6D4D90022F8DF /* LeadingController.m in Sources */ = {isa = PBXBuildFile; fileRef = D04B3D9827F6D4D90022F8DF /* LeadingController.m */; };
D04B3DAC27F6EEB50022F8DF /* DSTabBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = D04B3DAA27F6EEB40022F8DF /* DSTabBarController.m */; };
D04B3DAC27F6EEB50022F8DF /* DSTabBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = D04B3DAA27F6EEB40022F8DF /* DSTabBarController.m */; };
...
@@ -325,7 +324,6 @@
...
@@ -325,7 +324,6 @@
D03AE82A281A9010001C0726 /* MyFeedDetailModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MyFeedDetailModel.m; sourceTree = "<group>"; };
D03AE82A281A9010001C0726 /* MyFeedDetailModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MyFeedDetailModel.m; sourceTree = "<group>"; };
D0496796283484CC00FB81E5 /* ProfileTableView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ProfileTableView.h; sourceTree = "<group>"; };
D0496796283484CC00FB81E5 /* ProfileTableView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ProfileTableView.h; sourceTree = "<group>"; };
D0496797283484CC00FB81E5 /* ProfileTableView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ProfileTableView.m; sourceTree = "<group>"; };
D0496797283484CC00FB81E5 /* ProfileTableView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ProfileTableView.m; sourceTree = "<group>"; };
D04967992834C95100FB81E5 /* introduce.webp */ = {isa = PBXFileReference; lastKnownFileType = file; path = introduce.webp; sourceTree = "<group>"; };
D049679B2834E1AB00FB81E5 /* ProfileHeaderView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ProfileHeaderView.h; sourceTree = "<group>"; };
D049679B2834E1AB00FB81E5 /* ProfileHeaderView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ProfileHeaderView.h; sourceTree = "<group>"; };
D049679C2834E1AB00FB81E5 /* ProfileHeaderView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ProfileHeaderView.m; sourceTree = "<group>"; };
D049679C2834E1AB00FB81E5 /* ProfileHeaderView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ProfileHeaderView.m; sourceTree = "<group>"; };
D04B3D9727F6D4D90022F8DF /* LeadingController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LeadingController.h; sourceTree = "<group>"; };
D04B3D9727F6D4D90022F8DF /* LeadingController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LeadingController.h; sourceTree = "<group>"; };
...
@@ -916,7 +914,6 @@
...
@@ -916,7 +914,6 @@
D04567A827F6D018009F0A82 /* Resource */ = {
D04567A827F6D018009F0A82 /* Resource */ = {
isa = PBXGroup;
isa = PBXGroup;
children = (
children = (
D04967992834C95100FB81E5 /* introduce.webp */,
D051032D282A4E9200560A0D /* fse.mp3 */,
D051032D282A4E9200560A0D /* fse.mp3 */,
D051032C282A4E9200560A0D /* instant_eternity.mp3 */,
D051032C282A4E9200560A0D /* instant_eternity.mp3 */,
D020CE1E280D915D00E7E82F /* invite_friend.webp */,
D020CE1E280D915D00E7E82F /* invite_friend.webp */,
...
@@ -1864,7 +1861,6 @@
...
@@ -1864,7 +1861,6 @@
D0B5ECB427F2D9E0003EDFE3 /* LaunchScreen.storyboard in Resources */,
D0B5ECB427F2D9E0003EDFE3 /* LaunchScreen.storyboard in Resources */,
D0B5ECB127F2D9E0003EDFE3 /* Assets.xcassets in Resources */,
D0B5ECB127F2D9E0003EDFE3 /* Assets.xcassets in Resources */,
D04B3DBD27F6F8090022F8DF /* Profile.storyboard in Resources */,
D04B3DBD27F6F8090022F8DF /* Profile.storyboard in Resources */,
D049679A2834C95100FB81E5 /* introduce.webp in Resources */,
D051032F282A4E9200560A0D /* fse.mp3 in Resources */,
D051032F282A4E9200560A0D /* fse.mp3 in Resources */,
D0C09EDA28007D9100709D4C /* relax_lottie.json in Resources */,
D0C09EDA28007D9100709D4C /* relax_lottie.json in Resources */,
D0CFD3D027FB3B920002982B /* launcher@3x.png in Resources */,
D0CFD3D027FB3B920002982B /* launcher@3x.png in Resources */,
...
...
DreamSleep/DreamSleep/Class/ProfileModule/Me/ProfileTableView.m
查看文件 @
92efa99
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
#import "ProfileTableView.h"
#import "ProfileTableView.h"
#import "ProfileHeaderView.h"
#import "ProfileHeaderView.h"
#import <YYWebImage/YYWebImage.h>
#pragma mark - ProfileModel
#pragma mark - ProfileModel
@interface
ProfileModel
:
NSObject
@interface
ProfileModel
:
NSObject
...
@@ -166,7 +165,7 @@
...
@@ -166,7 +165,7 @@
}
}
-
(
CGFloat
)
tableView
:(
UITableView
*
)
tableView
heightForRowAtIndexPath
:(
NSIndexPath
*
)
indexPath
{
-
(
CGFloat
)
tableView
:(
UITableView
*
)
tableView
heightForRowAtIndexPath
:(
NSIndexPath
*
)
indexPath
{
return
4
2
;
return
4
8
;
}
}
-
(
CGFloat
)
tableView
:(
UITableView
*
)
tableView
heightForHeaderInSection
:(
NSInteger
)
section
{
-
(
CGFloat
)
tableView
:(
UITableView
*
)
tableView
heightForHeaderInSection
:(
NSInteger
)
section
{
...
@@ -246,15 +245,16 @@
...
@@ -246,15 +245,16 @@
-
(
UIView
*
)
footerView
{
-
(
UIView
*
)
footerView
{
if
(
!
_footerView
)
{
if
(
!
_footerView
)
{
_footerView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
kScreenWidth
,
144
+
15
)];
CGFloat
width
=
kScreenWidth
-
30
;
YYAnimatedImageView
*
animatedView
=
[[
YYAnimatedImageView
alloc
]
initWithFrame
:
CGRectMake
(
15
,
15
,
_footerView
.
width
-
30
,
120
)];
CGFloat
height
=
260
*
width
/
654
.
0
;
NSString
*
path
=
[[
NSBundle
mainBundle
]
pathForAuxiliaryExecutable
:
@"introduce.webp"
];
_footerView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
kScreenWidth
,
height
+
27
)];
NSData
*
webpData
=
[
NSData
dataWithContentsOfFile
:
path
];
UIImageView
*
introduceIV
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
15
,
15
,
width
,
height
)];
animatedView
.
image
=
[
YYImage
imageWithData
:
webpData
];
[
introduceIV
cornerRadius
:
12
.
0
];
animatedView
.
userInteractionEnabled
=
YES
;
introduceIV
.
userInteractionEnabled
=
YES
;
[
_footerView
addSubview
:
animatedView
];
[
introduceIV
yy_setImageWithURL
:[
NSURL
URLWithString
:
@"https://img2.ydniu.com/sleep_ssmain/cbti_cover.png"
]
placeholder
:[
UIImage
imageNamed
:
@"bannerPlaceholder"
]];
[
_footerView
addSubview
:
introduceIV
];
UITapGestureRecognizer
*
tapGR
=
[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
tapCBTIAction
)];
UITapGestureRecognizer
*
tapGR
=
[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
tapCBTIAction
)];
[
animatedView
addGestureRecognizer
:
tapGR
];
[
introduceIV
addGestureRecognizer
:
tapGR
];
}
}
return
_footerView
;
return
_footerView
;
}
}
...
...
DreamSleep/DreamSleep/Resource/introduce.webp
deleted
100644 → 0
查看文件 @
f555a88
此文件类型无法预览
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论