Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 7fb6c827
由
cgx
编写于
2022-06-29 10:27:10 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修复好眠声音重复bug
1 个父辈
bae627ac
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
99 行增加
和
108 行删除
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
DreamSleep/DreamSleep.xcworkspace/xcuserdata/peter.xcuserdatad/UserInterfaceState.xcuserstate
DreamSleep/DreamSleep/Class/HomeModule/Course/Model/SafeSleepModel.h
DreamSleep/DreamSleep/Class/HomeModule/Course/Model/SafeSleepModel.m
DreamSleep/DreamSleep/Class/HomeModule/Home/View/DSHomeView.m
DreamSleep/DreamSleep/Class/HomeModule/Home/View/GoodSleepSoundCell.h → DreamSleep/DreamSleep/Class/HomeModule/Home/View/GoodSleepHeadView.h
DreamSleep/DreamSleep/Class/HomeModule/Home/View/GoodSleepSoundCell.m → DreamSleep/DreamSleep/Class/HomeModule/Home/View/GoodSleepHeadView.m
DreamSleep/DreamSleep/Class/HomeModule/WhiteNoise/View/NoiseView.m
DreamSleep/Pods/Pods.xcodeproj/xcuserdata/peter.xcuserdatad/xcschemes/xcschememanagement.plist
DreamSleep/TapiOS/Unity-iPhone.xcodeproj/xcuserdata/peter.xcuserdatad/xcschemes/xcschememanagement.plist
DreamSleep/DreamSleep.xcodeproj/project.pbxproj
查看文件 @
7fb6c82
...
...
@@ -75,6 +75,7 @@
D062A09E281838B800B4F48A /* FeedbackRequestModel.m in Sources */ = {isa = PBXBuildFile; fileRef = D062A09D281838B800B4F48A /* FeedbackRequestModel.m */; };
D062A0A128183FE000B4F48A /* FeedbackDetailController.m in Sources */ = {isa = PBXBuildFile; fileRef = D062A0A028183FE000B4F48A /* FeedbackDetailController.m */; };
D070509A28071BAF006D72E1 /* DSNetworkTool.m in Sources */ = {isa = PBXBuildFile; fileRef = D070509928071BAF006D72E1 /* DSNetworkTool.m */; };
D07257F0286BE5510080F458 /* GoodSleepHeadView.m in Sources */ = {isa = PBXBuildFile; fileRef = D07257EF286BE5510080F458 /* GoodSleepHeadView.m */; };
D07A4B27280E9BAA00BA0EC0 /* AccountController.m in Sources */ = {isa = PBXBuildFile; fileRef = D07A4B26280E9BAA00BA0EC0 /* AccountController.m */; };
D07A4B2A280EA6B600BA0EC0 /* UserInfoTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = D07A4B29280EA6B600BA0EC0 /* UserInfoTableView.m */; };
D07A4B2D280EA73B00BA0EC0 /* UserInfoView.m in Sources */ = {isa = PBXBuildFile; fileRef = D07A4B2C280EA73B00BA0EC0 /* UserInfoView.m */; };
...
...
@@ -133,7 +134,6 @@
D09D0E9D280D73B6008DEDAB /* InviteController.m in Sources */ = {isa = PBXBuildFile; fileRef = D09D0E9C280D73B6008DEDAB /* InviteController.m */; };
D0A245F6283DB12100FB49AA /* WKWebView+Extras.m in Sources */ = {isa = PBXBuildFile; fileRef = D0A245F5283DB12100FB49AA /* WKWebView+Extras.m */; };
D0A72E39282B566200EED7BE /* HomeBasicCell.m in Sources */ = {isa = PBXBuildFile; fileRef = D0A72E38282B566200EED7BE /* HomeBasicCell.m */; };
D0A72E3C282B56E600EED7BE /* GoodSleepSoundCell.m in Sources */ = {isa = PBXBuildFile; fileRef = D0A72E3B282B56E600EED7BE /* GoodSleepSoundCell.m */; };
D0A72E3F282B89AD00EED7BE /* DSHomeView.m in Sources */ = {isa = PBXBuildFile; fileRef = D0A72E3E282B89AD00EED7BE /* DSHomeView.m */; };
D0A72E42282B8BA600EED7BE /* CourseMusicCell.m in Sources */ = {isa = PBXBuildFile; fileRef = D0A72E41282B8BA600EED7BE /* CourseMusicCell.m */; };
D0A750FC282DE21D00589B0E /* NoiseAudioCell.m in Sources */ = {isa = PBXBuildFile; fileRef = D0A750FB282DE21D00589B0E /* NoiseAudioCell.m */; };
...
...
@@ -369,6 +369,8 @@
D062A0A028183FE000B4F48A /* FeedbackDetailController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FeedbackDetailController.m; sourceTree = "<group>"; };
D070509828071BAF006D72E1 /* DSNetworkTool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DSNetworkTool.h; sourceTree = "<group>"; };
D070509928071BAF006D72E1 /* DSNetworkTool.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DSNetworkTool.m; sourceTree = "<group>"; };
D07257EE286BE5510080F458 /* GoodSleepHeadView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GoodSleepHeadView.h; sourceTree = "<group>"; };
D07257EF286BE5510080F458 /* GoodSleepHeadView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GoodSleepHeadView.m; sourceTree = "<group>"; };
D07A4B25280E9BAA00BA0EC0 /* AccountController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AccountController.h; sourceTree = "<group>"; };
D07A4B26280E9BAA00BA0EC0 /* AccountController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AccountController.m; sourceTree = "<group>"; };
D07A4B28280EA6B600BA0EC0 /* UserInfoTableView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UserInfoTableView.h; sourceTree = "<group>"; };
...
...
@@ -483,8 +485,6 @@
D0A245F5283DB12100FB49AA /* WKWebView+Extras.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "WKWebView+Extras.m"; sourceTree = "<group>"; };
D0A72E37282B566200EED7BE /* HomeBasicCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HomeBasicCell.h; sourceTree = "<group>"; };
D0A72E38282B566200EED7BE /* HomeBasicCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HomeBasicCell.m; sourceTree = "<group>"; };
D0A72E3A282B56E600EED7BE /* GoodSleepSoundCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GoodSleepSoundCell.h; sourceTree = "<group>"; };
D0A72E3B282B56E600EED7BE /* GoodSleepSoundCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GoodSleepSoundCell.m; sourceTree = "<group>"; };
D0A72E3D282B89AD00EED7BE /* DSHomeView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DSHomeView.h; sourceTree = "<group>"; };
D0A72E3E282B89AD00EED7BE /* DSHomeView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DSHomeView.m; sourceTree = "<group>"; };
D0A72E40282B8BA600EED7BE /* CourseMusicCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CourseMusicCell.h; sourceTree = "<group>"; };
...
...
@@ -1532,12 +1532,12 @@
D0A72E38282B566200EED7BE /* HomeBasicCell.m */,
D0A72E40282B8BA600EED7BE /* CourseMusicCell.h */,
D0A72E41282B8BA600EED7BE /* CourseMusicCell.m */,
D0A72E3A282B56E600EED7BE /* GoodSleepSoundCell.h */,
D0A72E3B282B56E600EED7BE /* GoodSleepSoundCell.m */,
D0506B1628054ECD00229278 /* SafeHelperCollectionView.h */,
D0506B1728054ECD00229278 /* SafeHelperCollectionView.m */,
D0506B192805500E00229278 /* SafeHelperCollectionViewCell.h */,
D0506B1A2805500E00229278 /* SafeHelperCollectionViewCell.m */,
D07257EE286BE5510080F458 /* GoodSleepHeadView.h */,
D07257EF286BE5510080F458 /* GoodSleepHeadView.m */,
);
path = View;
sourceTree = "<group>";
...
...
@@ -2042,7 +2042,6 @@
D07DACAB2810557D0067A1BF /* RSKImageScrollView.m in Sources */,
D0AEFE812817DD1500230DC6 /* MyFeedCell.m in Sources */,
D0F9AC542826563400FD7A3B /* MusicPlayerController.m in Sources */,
D0A72E3C282B56E600EED7BE /* GoodSleepSoundCell.m in Sources */,
D0506B1528051ED400229278 /* SafeSleepModel.m in Sources */,
D054CCB52830DE5600420DC4 /* NoisePlayerManager.m in Sources */,
D0874BBF2816E61000CECB3C /* RescuePlanView.m in Sources */,
...
...
@@ -2069,6 +2068,7 @@
D0D96FDF2848457900461839 /* RelaxTrainRequestModel.m in Sources */,
D027EE2927FB51D0004BBA61 /* DSGifHeader.m in Sources */,
D030C1B8284775930014946F /* RelaxTrainController.m in Sources */,
D07257F0286BE5510080F458 /* GoodSleepHeadView.m in Sources */,
D049679D2834E1AB00FB81E5 /* ProfileHeaderView.m in Sources */,
D0B1124A28631D8C00A496FB /* DSSlider.m in Sources */,
D0336163285035AB005573CF /* DailyBgView.m in Sources */,
...
...
DreamSleep/DreamSleep.xcworkspace/xcuserdata/peter.xcuserdatad/UserInterfaceState.xcuserstate
查看文件 @
7fb6c82
此文件类型无法预览
DreamSleep/DreamSleep/Class/HomeModule/Course/Model/SafeSleepModel.h
查看文件 @
7fb6c82
...
...
@@ -11,12 +11,11 @@
typedef
NS_ENUM
(
NSInteger
,
CellType
)
{
CellTypeCourse
,
// 舒眠课程
CellTypeMusic
,
// 助眠音乐
CellTypeGood
// 好眠声音
};
NS_ASSUME_NONNULL_BEGIN
/// 舒眠课程、助眠音乐
、好眠声音
数据通用数据 model
/// 舒眠课程、助眠音乐数据通用数据 model
@interface
SafeSleepModel
:
NSObject
/// cell标题
@property
(
nonatomic
,
copy
)
NSString
*
title
;
...
...
DreamSleep/DreamSleep/Class/HomeModule/Course/Model/SafeSleepModel.m
查看文件 @
7fb6c82
...
...
@@ -10,10 +10,10 @@
@implementation
SafeSleepModel
+
(
NSArray
*
)
getDatas
{
NSArray
*
titles
=
@[
@"舒眠课程"
,
@"助眠音乐"
,
@"好眠声音"
];
NSArray
*
types
=
@[
@
(
CellTypeCourse
),
@
(
CellTypeMusic
)
,
@
(
CellTypeGood
)
];
NSArray
*
titles
=
@[
@"舒眠课程"
,
@"助眠音乐"
];
NSArray
*
types
=
@[
@
(
CellTypeCourse
),
@
(
CellTypeMusic
)];
NSMutableArray
*
tmpDatas
=
[
NSMutableArray
array
];
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
for
(
int
i
=
0
;
i
<
titles
.
count
;
i
++
)
{
SafeSleepModel
*
m
=
[
SafeSleepModel
new
];
m
.
type
=
[
types
[
i
]
integerValue
];
m
.
title
=
titles
[
i
];
...
...
DreamSleep/DreamSleep/Class/HomeModule/Home/View/DSHomeView.m
查看文件 @
7fb6c82
...
...
@@ -7,7 +7,8 @@
#import "DSHomeView.h"
#import "CourseMusicCell.h"
#import "GoodSleepSoundCell.h"
#import "GoodSleepHeadView.h"
#import "NoiseView.h"
@interface
DSHomeView
()
<
UITableViewDelegate
,
UITableViewDataSource
>
/// 通用数据
...
...
@@ -16,14 +17,14 @@
@property
(
nonatomic
,
strong
)
NSArray
*
courseListArr
;
/// 助眠音乐数据
@property
(
nonatomic
,
strong
)
NSArray
*
helpListArr
;
/// 类型数据
@property
(
nonatomic
,
strong
)
N
SArray
*
typeArr
;
@property
(
nonatomic
,
strong
)
GoodSleepHeadView
*
goodSleepHeadView
;
@property
(
nonatomic
,
strong
)
N
oiseView
*
noiseView
;
@end
@implementation
DSHomeView
-
(
instancetype
)
init
{
if
(
self
=
[
super
initWithFrame
:
CGRectMake
(
0
,
0
,
kScreenWidth
,
kScreenHeight
-
kTopHeight
(
0
)
-
kTabBarHeight
)
style
:
UITableViewStyle
Plain
])
{
if
(
self
=
[
super
initWithFrame
:
CGRectMake
(
0
,
0
,
kScreenWidth
,
kScreenHeight
-
kTopHeight
(
0
)
-
kTabBarHeight
)
style
:
UITableViewStyle
Grouped
])
{
self
.
dk_backgroundColorPicker
=
DKColorPickerWithKey
(
VCViewBG
);
self
.
contentInsetAdjustmentBehavior
=
UIScrollViewContentInsetAdjustmentNever
;
self
.
separatorStyle
=
UITableViewCellSeparatorStyleNone
;
...
...
@@ -31,6 +32,7 @@
self
.
delegate
=
self
;
self
.
dataSource
=
self
;
self
.
tableHeaderView
=
self
.
headerView
;
self
.
tableFooterView
=
self
.
noiseView
;
}
return
self
;
}
...
...
@@ -52,23 +54,13 @@
-
(
void
)
updateNoiseAllTypeData
:
(
NSArray
*
)
typeDataArr
{
if
(
typeDataArr
&&
typeDataArr
.
count
>
0
)
{
self
.
typeArr
=
typeDataArr
;
[
self
reloadData
];
[
self
.
noiseView
refreshNoiseTypeData
:
typeDataArr
];
}
}
#pragma mark - UITableViewDelegate && UITableViewDataSource
-
(
nonnull
UITableViewCell
*
)
tableView
:
(
nonnull
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
nonnull
NSIndexPath
*
)
indexPath
{
NSString
*
cellID
=
[
NSString
stringWithFormat
:
@"cmg_%zd"
,
indexPath
.
row
];
if
(
indexPath
.
row
==
2
)
{
GoodSleepSoundCell
*
goodCell
=
[
tableView
dequeueReusableCellWithIdentifier
:
cellID
];
if
(
!
goodCell
)
{
goodCell
=
[[
GoodSleepSoundCell
alloc
]
initWithStyle
:
UITableViewCellStyleDefault
reuseIdentifier
:
cellID
];
}
[
goodCell
configBasicData
:
self
.
courseMusicArr
[
indexPath
.
row
]
cellIndex
:
indexPath
.
row
];
[
goodCell
updateNoiseAllTypeData
:
self
.
typeArr
];
return
goodCell
;
}
else
{
NSString
*
cellID
=
[
NSString
stringWithFormat
:
@"CourseMusicCell_%zd"
,
indexPath
.
row
];
CourseMusicCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
cellID
];
if
(
!
cell
)
{
cell
=
[[
CourseMusicCell
alloc
]
initWithStyle
:
UITableViewCellStyleDefault
reuseIdentifier
:
cellID
];
...
...
@@ -76,7 +68,6 @@
[
cell
configBasicData
:
self
.
courseMusicArr
[
indexPath
.
row
]
cellIndex
:
indexPath
.
row
];
[
cell
updateCourseMusicListWithData
:(
indexPath
.
row
==
0
?
self
.
courseListArr
:
self
.
helpListArr
)
cellIndex
:
indexPath
.
row
];
return
cell
;
}
}
-
(
NSInteger
)
tableView
:
(
UITableView
*
)
tableView
numberOfRowsInSection
:
(
NSInteger
)
section
{
...
...
@@ -84,15 +75,7 @@
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
CGFloat
height
=
0
;
if
(
indexPath
.
row
==
0
)
{
height
=
228
;
}
else
if
(
indexPath
.
row
==
1
)
{
height
=
228
;
}
else
if
(
indexPath
.
row
==
2
)
{
height
=
68
+
40
+
327
+
70
;
}
return
height
;
return
228
;
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForHeaderInSection
:
(
NSInteger
)
section
{
...
...
@@ -100,7 +83,7 @@
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForFooterInSection
:
(
NSInteger
)
section
{
return
0
.
001
;
return
68
;
}
-
(
UIView
*
)
tableView
:
(
UITableView
*
)
tableView
viewForHeaderInSection
:
(
NSInteger
)
section
{
...
...
@@ -108,16 +91,7 @@
}
-
(
UIView
*
)
tableView
:
(
UITableView
*
)
tableView
viewForFooterInSection
:
(
NSInteger
)
section
{
return
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
10
,
0
.
001
)];
}
-
(
NSString
*
)
cellIdentiferAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
SafeSleepModel
*
item
=
self
.
courseMusicArr
[
indexPath
.
row
];
if
(
item
.
type
==
CellTypeGood
)
{
return
NSStringFromClass
([
GoodSleepSoundCell
class
]);
}
else
{
return
NSStringFromClass
([
CourseMusicCell
class
]);
}
return
self
.
goodSleepHeadView
;
}
#pragma mark - lazy
...
...
@@ -134,6 +108,20 @@
return
_headerView
;
}
-
(
GoodSleepHeadView
*
)
goodSleepHeadView
{
if
(
!
_goodSleepHeadView
)
{
_goodSleepHeadView
=
[[
GoodSleepHeadView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
kScreenWidth
,
68
)];
}
return
_goodSleepHeadView
;
}
-
(
NoiseView
*
)
noiseView
{
if
(
!
_noiseView
)
{
_noiseView
=
[[
NoiseView
alloc
]
initWithNoiseTypeData
:@[]];
}
return
_noiseView
;
}
-
(
NSArray
*
)
courseMusicArr
{
if
(
!
_courseMusicArr
)
{
_courseMusicArr
=
[
SafeSleepModel
getDatas
];
...
...
@@ -155,11 +143,4 @@
return
_helpListArr
;
}
-
(
NSArray
*
)
typeArr
{
if
(
!
_typeArr
)
{
_typeArr
=
[
NSArray
array
];
}
return
_typeArr
;
}
@end
DreamSleep/DreamSleep/Class/HomeModule/Home/View/GoodSleep
SoundCell
.h
→
DreamSleep/DreamSleep/Class/HomeModule/Home/View/GoodSleep
HeadView
.h
查看文件 @
7fb6c82
//
// GoodSleep
SoundCell
.h
// GoodSleep
HeadView
.h
// DreamSleep
//
// Created by peter on 2022/
5/11
.
// Created by peter on 2022/
6/29
.
//
#import
"HomeBasicCell.h"
#import
<UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
/// 好眠声音cell
@interface
GoodSleepSoundCell
:
HomeBasicCell
-
(
void
)
updateNoiseAllTypeData
:(
NSArray
*
)
typeDataArr
;
/// 好眠声音头部
@interface
GoodSleepHeadView
:
UIView
@end
...
...
DreamSleep/DreamSleep/Class/HomeModule/Home/View/GoodSleep
SoundCell
.m
→
DreamSleep/DreamSleep/Class/HomeModule/Home/View/GoodSleep
HeadView
.m
查看文件 @
7fb6c82
//
// GoodSleep
SoundCell
.m
// GoodSleep
HeadView
.m
// DreamSleep
//
// Created by peter on 2022/
5/11
.
// Created by peter on 2022/
6/29
.
//
#import "GoodSleepSoundCell.h"
#import "NoiseListController.h"
#import "NoiseTypeModel.h"
#import "NoiseView.h"
#import "GoodSleepHeadView.h"
@interface
GoodSleepSoundCell
()
@interface
GoodSleepHeadView
()
/// 左边竖条视图
@property
(
nonatomic
,
strong
)
UIView
*
verticalView
;
/// 标题标签
@property
(
nonatomic
,
strong
)
UILabel
*
titleLab
;
/// 定时器
@property
(
nonatomic
,
strong
)
UIButton
*
timerBtn
;
@property
(
nonatomic
,
strong
)
NoiseView
*
noiseView
;
@end
@implementation
GoodSleep
SoundCell
@implementation
GoodSleep
HeadView
-
(
instancetype
)
initWithStyle
:(
UITableViewCellStyle
)
style
reuseIdentifier
:(
NSString
*
)
reuseIdentifier
{
if
(
self
=
[
super
initWithStyle
:
style
reuseIdentifier
:
reuseIdentifier
])
{
[
self
.
contentView
addSubview
:
self
.
timerBtn
];
[
self
.
contentView
addSubview
:
self
.
noiseView
];
-
(
instancetype
)
initWithFrame
:(
CGRect
)
frame
{
if
(
self
=
[
super
initWithFrame
:
frame
])
{
[
self
addSubview
:
self
.
verticalView
];
[
self
addSubview
:
self
.
titleLab
];
[
self
addSubview
:
self
.
timerBtn
];
[
self
.
verticalView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
equalTo
(
self
.
mas_left
).
offset
(
15
);
make
.
top
.
equalTo
(
self
.
mas_top
).
offset
(
33
);
make
.
width
.
equalTo
(
@4
);
make
.
height
.
equalTo
(
@16
);
}];
[
self
.
titleLab
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
equalTo
(
self
.
verticalView
.
mas_right
).
offset
(
8
);
make
.
centerY
.
equalTo
(
self
.
verticalView
.
mas_centerY
);
}];
[
self
.
timerBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
right
.
equalTo
(
self
.
contentView
.
mas_right
).
offset
(
-
15
);
make
.
right
.
equalTo
(
self
.
mas_right
).
offset
(
-
15
);
make
.
width
.
equalTo
(
@40
);
make
.
height
.
equalTo
(
@30
);
make
.
centerY
.
equalTo
(
self
.
verticalView
.
mas_centerY
);
}];
[
self
.
noiseView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
equalTo
(
self
.
timerBtn
.
mas_bottom
).
offset
(
5
);
make
.
left
.
right
.
bottom
.
equalTo
(
self
.
contentView
);
}];
}
return
self
;
}
-
(
void
)
updateNoiseAllTypeData
:(
NSArray
*
)
typeDataArr
{
[
self
.
noiseView
refreshNoiseTypeData
:
typeDataArr
];
}
#pragma mark - Actions
-
(
void
)
timerSetting
:(
UIButton
*
)
sender
{
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
NoiseTimingDidClick
object
:
nil
];
}
#pragma mark - lazy
-
(
UIView
*
)
verticalView
{
if
(
!
_verticalView
)
{
_verticalView
=
[
UIView
new
];
_verticalView
.
backgroundColor
=
BrandColor
;
[
_verticalView
cornerRadius
:
2
.
0
];
}
return
_verticalView
;
}
-
(
UILabel
*
)
titleLab
{
if
(
!
_titleLab
)
{
_titleLab
=
[
UILabel
dkLabWithText
:
@"好眠声音"
font
:
BoldFont
(
16
.
0
)];
}
return
_titleLab
;
}
-
(
UIButton
*
)
timerBtn
{
if
(
!
_timerBtn
)
{
_timerBtn
=
[
UIButton
new
];
...
...
@@ -55,11 +75,4 @@
return
_timerBtn
;
}
-
(
NoiseView
*
)
noiseView
{
if
(
!
_noiseView
)
{
_noiseView
=
[[
NoiseView
alloc
]
initWithNoiseTypeData
:@[]];
}
return
_noiseView
;
}
@end
DreamSleep/DreamSleep/Class/HomeModule/WhiteNoise/View/NoiseView.m
查看文件 @
7fb6c82
...
...
@@ -117,7 +117,7 @@
static
NSString
*
mainCell
=
@"inxx_mainCell"
;
-
(
instancetype
)
initWithNoiseTypeData
:(
NSArray
*
)
data
{
if
(
self
=
[
super
init
])
{
if
(
self
=
[
super
init
WithFrame
:
CGRectMake
(
0
,
0
,
kScreenWidth
,
40
+
327
+
70
)
])
{
self
.
pageTypes
=
data
;
self
.
controllersClass
=
@[];
self
.
selectedIndex
=
0
;
...
...
DreamSleep/Pods/Pods.xcodeproj/xcuserdata/peter.xcuserdatad/xcschemes/xcschememanagement.plist
查看文件 @
7fb6c82
...
...
@@ -7,77 +7,77 @@
<key>
AFNetworking.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
4
</integer>
<integer>
13
</integer>
</dict>
<key>
DKNightVersion.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
0
</integer>
<integer>
1
1
</integer>
</dict>
<key>
DOUAudioStreamer.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
9
</integer>
<integer>
1
2
</integer>
</dict>
<key>
FreeStreamer.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
5
</integer>
<integer>
1
0
</integer>
</dict>
<key>
IQKeyboardManager.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
16
</integer>
<integer>
5
</integer>
</dict>
<key>
MBProgressHUD.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
14
</integer>
<integer>
6
</integer>
</dict>
<key>
MJRefresh.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
7
</integer>
<integer>
1
8
</integer>
</dict>
<key>
Masonry.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
3
</integer>
<integer>
1
5
</integer>
</dict>
<key>
Pods-DreamSleep.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
12
</integer>
<integer>
7
</integer>
</dict>
<key>
Reachability.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
7
</integer>
<integer>
14
</integer>
</dict>
<key>
YYCache.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
1
</integer>
<integer>
1
6
</integer>
</dict>
<key>
YYImage.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
5
</integer>
<integer>
19
</integer>
</dict>
<key>
YYModel.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
8
</integer>
<integer>
17
</integer>
</dict>
<key>
YYWebImage.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
9
</integer>
<integer>
4
</integer>
</dict>
<key>
lottie-ios.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
8
</integer>
<integer>
8
</integer>
</dict>
</dict>
</dict>
...
...
DreamSleep/TapiOS/Unity-iPhone.xcodeproj/xcuserdata/peter.xcuserdatad/xcschemes/xcschememanagement.plist
查看文件 @
7fb6c82
...
...
@@ -12,7 +12,7 @@
<key>
UnityFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
6
</integer>
<integer>
9
</integer>
</dict>
</dict>
</dict>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论