Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 3d87c87b
由
cgx
编写于
2022-04-20 21:44:15 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修复系统设置页面、账户与资料UI显示bug
1 个父辈
ee2940f6
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
26 行增加
和
16 行删除
DreamSleep/DreamSleep/Profile/Account/UserInfoTableView.m
DreamSleep/DreamSleep/Profile/SystemSet/SetTableView.m
DreamSleep/DreamSleep/Profile/Account/UserInfoTableView.m
查看文件 @
3d87c87
...
@@ -21,14 +21,15 @@
...
@@ -21,14 +21,15 @@
-
(
instancetype
)
initWithStyle
:(
UITableViewCellStyle
)
style
reuseIdentifier
:(
NSString
*
)
reuseIdentifier
{
-
(
instancetype
)
initWithStyle
:(
UITableViewCellStyle
)
style
reuseIdentifier
:(
NSString
*
)
reuseIdentifier
{
if
(
self
=
[
super
initWithStyle
:
style
reuseIdentifier
:
reuseIdentifier
])
{
if
(
self
=
[
super
initWithStyle
:
style
reuseIdentifier
:
reuseIdentifier
])
{
self
.
dk_backgroundColorPicker
=
DKColorPickerWithColors
(
DSWhite
,
CornerViewDarkColor
,
DSWhite
);
self
.
dk_backgroundColorPicker
=
DKColorPickerWithColors
(
DSWhite
,
CornerViewDarkColor
,
DSWhite
);
self
.
accessoryView
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"moreIcon"
]];
self
.
rightIcon
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"moreIcon"
]];
[
self
.
contentView
addSubview
:
self
.
rightIcon
];
self
.
titleLab
=
[
UILabel
dkLabWithFont
:
SysFont
(
15
.
0
)];
self
.
titleLab
=
[
UILabel
dkLabWithFont
:
SysFont
(
15
.
0
)];
[
self
addSubview
:
self
.
titleLab
];
[
self
.
contentView
addSubview
:
self
.
titleLab
];
self
.
detailLab
=
[
UILabel
labWithFont
:
SysFont
(
14
.
0
)];
self
.
detailLab
=
[
UILabel
labWithFont
:
SysFont
(
14
.
0
)];
self
.
detailLab
.
dk_textColorPicker
=
DKColorPickerWithColors
(
SubTitleColor
,
ColorFromHex
(
0x8C8F9D
),
DSWhite
);
self
.
detailLab
.
dk_textColorPicker
=
DKColorPickerWithColors
(
SubTitleColor
,
ColorFromHex
(
0x8C8F9D
),
DSWhite
);
[
self
addSubview
:
self
.
detailLab
];
[
self
.
contentView
addSubview
:
self
.
detailLab
];
}
}
return
self
;
return
self
;
}
}
...
@@ -46,12 +47,16 @@
...
@@ -46,12 +47,16 @@
[
self
.
detailLab
sizeToFit
];
[
self
.
detailLab
sizeToFit
];
[
self
.
titleLab
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
self
.
titleLab
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
equalTo
(
self
).
offset
(
15
);
make
.
left
.
equalTo
(
self
.
contentView
).
offset
(
15
);
make
.
centerY
.
equalTo
(
self
);
make
.
centerY
.
equalTo
(
self
.
contentView
);
}];
}];
[
self
.
detailLab
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
self
.
detailLab
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
right
.
equalTo
(
self
.
accessoryView
.
mas_left
).
offset
(
-
8
);
make
.
right
.
equalTo
(
self
.
rightIcon
.
mas_left
).
offset
(
-
8
);
make
.
centerY
.
equalTo
(
self
);
make
.
centerY
.
equalTo
(
self
.
contentView
);
}];
[
self
.
rightIcon
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerY
.
equalTo
(
self
.
contentView
);
make
.
right
.
equalTo
(
self
.
contentView
).
offset
(
-
8
);
}];
}];
}
}
...
...
DreamSleep/DreamSleep/Profile/SystemSet/SetTableView.m
查看文件 @
3d87c87
...
@@ -43,14 +43,15 @@
...
@@ -43,14 +43,15 @@
-
(
instancetype
)
initWithStyle
:(
UITableViewCellStyle
)
style
reuseIdentifier
:(
NSString
*
)
reuseIdentifier
{
-
(
instancetype
)
initWithStyle
:(
UITableViewCellStyle
)
style
reuseIdentifier
:(
NSString
*
)
reuseIdentifier
{
if
(
self
=
[
super
initWithStyle
:
style
reuseIdentifier
:
reuseIdentifier
])
{
if
(
self
=
[
super
initWithStyle
:
style
reuseIdentifier
:
reuseIdentifier
])
{
self
.
dk_backgroundColorPicker
=
DKColorPickerWithColors
(
DSWhite
,
CornerViewDarkColor
,
DSWhite
);
self
.
dk_backgroundColorPicker
=
DKColorPickerWithColors
(
DSWhite
,
CornerViewDarkColor
,
DSWhite
);
self
.
accessoryView
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"moreIcon"
]];
self
.
rightIcon
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"moreIcon"
]];
[
self
.
contentView
addSubview
:
self
.
rightIcon
];
self
.
titleLab
=
[
UILabel
dkLabWithFont
:
SysFont
(
15
.
0
)];
self
.
titleLab
=
[
UILabel
dkLabWithFont
:
SysFont
(
15
.
0
)];
[
self
addSubview
:
self
.
titleLab
];
[
self
.
contentView
addSubview
:
self
.
titleLab
];
self
.
detailLab
=
[
UILabel
labWithFont
:
SysFont
(
14
.
0
)];
self
.
detailLab
=
[
UILabel
labWithFont
:
SysFont
(
14
.
0
)];
self
.
detailLab
.
dk_textColorPicker
=
DKColorPickerWithColors
(
SubTitleColor
,
ColorFromHex
(
0x8C8F9D
),
DSWhite
);
self
.
detailLab
.
dk_textColorPicker
=
DKColorPickerWithColors
(
SubTitleColor
,
ColorFromHex
(
0x8C8F9D
),
DSWhite
);
[
self
addSubview
:
self
.
detailLab
];
[
self
.
contentView
addSubview
:
self
.
detailLab
];
}
}
return
self
;
return
self
;
}
}
...
@@ -68,12 +69,16 @@
...
@@ -68,12 +69,16 @@
[
self
.
detailLab
sizeToFit
];
[
self
.
detailLab
sizeToFit
];
[
self
.
titleLab
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
self
.
titleLab
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
equalTo
(
self
).
offset
(
15
);
make
.
left
.
equalTo
(
self
.
contentView
).
offset
(
15
);
make
.
centerY
.
equalTo
(
self
);
make
.
centerY
.
equalTo
(
self
.
contentView
);
}];
}];
[
self
.
detailLab
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
self
.
detailLab
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
right
.
equalTo
(
self
.
accessoryView
.
mas_left
).
offset
(
-
8
);
make
.
right
.
equalTo
(
self
.
rightIcon
.
mas_left
).
offset
(
-
8
);
make
.
centerY
.
equalTo
(
self
);
make
.
centerY
.
equalTo
(
self
.
contentView
);
}];
[
self
.
rightIcon
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerY
.
equalTo
(
self
.
contentView
);
make
.
right
.
equalTo
(
self
.
contentView
).
offset
(
-
8
);
}];
}];
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论