Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 2862a217
由
cgx
编写于
2022-05-16 15:51:38 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
关闭系统黑夜模式
1 个父辈
7020fea5
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
9 行删除
DreamSleep/DreamSleep/Basement/DSConfig/Info.plist
DreamSleep/DreamSleep/Class/HomeModule/WhiteNoise/View/NoisePlayView.m
DreamSleep/DreamSleep/Class/ProfileModule/Me/ProfileController.m
DreamSleep/DreamSleep/Basement/DSConfig/Info.plist
查看文件 @
2862a21
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<plist
version=
"1.0"
>
<dict>
<dict>
<key>
UIUserInterfaceStyle
</key>
<string>
UIUserInterfaceStyleLight
</string>
<key>
Bundle_Display_Name
</key>
<key>
Bundle_Display_Name
</key>
<string>
$(App_Display_Name)
</string>
<string>
$(App_Display_Name)
</string>
<key>
CFBundleURLTypes
</key>
<key>
CFBundleURLTypes
</key>
...
...
DreamSleep/DreamSleep/Class/HomeModule/WhiteNoise/View/NoisePlayView.m
查看文件 @
2862a21
...
@@ -55,14 +55,6 @@
...
@@ -55,14 +55,6 @@
#pragma mark - Actions
#pragma mark - Actions
-
(
void
)
oneClickAction
:
(
UIButton
*
)
sender
{
-
(
void
)
oneClickAction
:
(
UIButton
*
)
sender
{
// for (NoiseAudioCell *audioCell in self.audioArr) {
// FSAudioStream *audioStream = audioCell.model.audioStream;
// if (sender.selected) {
// [audioStream stop];
// } else {
// [audioStream play];
// }
// }
sender
.
selected
=
!
sender
.
selected
;
sender
.
selected
=
!
sender
.
selected
;
if
(
sender
.
selected
)
{
if
(
sender
.
selected
)
{
[[
NoisePlayerManager
sharedNoisePlayerManager
]
playAll
];
[[
NoisePlayerManager
sharedNoisePlayerManager
]
playAll
];
...
@@ -133,7 +125,7 @@
...
@@ -133,7 +125,7 @@
[[
NoisePlayerManager
sharedNoisePlayerManager
]
removeNoiseAudioCell
:
audioCell
];
[[
NoisePlayerManager
sharedNoisePlayerManager
]
removeNoiseAudioCell
:
audioCell
];
// 执行删除动画
// 执行删除动画
[
self
.
playListView
deleteRowsAtIndexPaths
:@[
indexPath
]
withRowAnimation
:
UITableViewRowAnimationLeft
];
[
self
.
playListView
deleteRowsAtIndexPaths
:@[
indexPath
]
withRowAnimation
:
UITableViewRowAnimationLeft
];
dispatch_after
(.
1
,
dispatch_get_main_queue
(),
^
{
dispatch_after
(.
3
,
dispatch_get_main_queue
(),
^
{
[
self
.
playListView
reloadData
];
[
self
.
playListView
reloadData
];
});
});
if
(
self
.
audioArr
.
count
==
0
)
{
[
self
removeFromSuperview
];
}
if
(
self
.
audioArr
.
count
==
0
)
{
[
self
removeFromSuperview
];
}
...
...
DreamSleep/DreamSleep/Class/ProfileModule/Me/ProfileController.m
查看文件 @
2862a21
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
self
.
navigationItem
.
title
=
@"我的"
;
self
.
navigationItem
.
title
=
@"我的"
;
self
.
tableView
.
dk_backgroundColorPicker
=
DKColorPickerWithKey
(
VCViewBG
);
self
.
tableView
.
dk_backgroundColorPicker
=
DKColorPickerWithKey
(
VCViewBG
);
self
.
tableView
.
separatorStyle
=
UITableViewCellSeparatorStyleNone
;
self
.
tmpDatas
=
@[
@"意见反馈"
,
@"系统设置"
,
@"邀请好友"
,
@"关于我们"
,
@"前往小程序"
,
@"关注公众号"
,
@"添加客服微信"
,
@"失眠的认知行为疗法"
];
self
.
tmpDatas
=
@[
@"意见反馈"
,
@"系统设置"
,
@"邀请好友"
,
@"关于我们"
,
@"前往小程序"
,
@"关注公众号"
,
@"添加客服微信"
,
@"失眠的认知行为疗法"
];
self
.
tableView
.
tableHeaderView
=
self
.
userInfoView
;
self
.
tableView
.
tableHeaderView
=
self
.
userInfoView
;
...
@@ -55,6 +56,7 @@
...
@@ -55,6 +56,7 @@
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
UITableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"profileCell"
forIndexPath
:
indexPath
];
UITableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"profileCell"
forIndexPath
:
indexPath
];
cell
.
dk_backgroundColorPicker
=
DKColorPickerWithKey
(
VCViewBG
);
cell
.
dk_backgroundColorPicker
=
DKColorPickerWithKey
(
VCViewBG
);
cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
cell
.
textLabel
.
text
=
self
.
tmpDatas
[
indexPath
.
row
];
cell
.
textLabel
.
text
=
self
.
tmpDatas
[
indexPath
.
row
];
cell
.
textLabel
.
dk_textColorPicker
=
DKColorPickerWithKey
(
TEXT
);
cell
.
textLabel
.
dk_textColorPicker
=
DKColorPickerWithKey
(
TEXT
);
cell
.
accessoryType
=
UITableViewCellAccessoryDisclosureIndicator
;
cell
.
accessoryType
=
UITableViewCellAccessoryDisclosureIndicator
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论