Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMBase
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMBase
Commits
68614e59
Commit
68614e59
authored
Apr 17, 2017
by
licong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文字过长的换行处理
parent
551ca367
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
OCEmptyView.m
GMBase/Classes/OCEmptyView.m
+3
-2
No files found.
GMBase/Classes/OCEmptyView.m
View file @
68614e59
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
_tipButton
=
[
OCRedGradientButton
buttonWithType
:
UIButtonTypeCustom
];
_tipButton
=
[
OCRedGradientButton
buttonWithType
:
UIButtonTypeCustom
];
_tipButton
.
frame
=
CGRectMake
(
0
,
0
,
10
,
10
);
//给一个默认的rect,让系统调用DrawRect方法
_tipButton
.
frame
=
CGRectMake
(
0
,
0
,
10
,
10
);
//给一个默认的rect,让系统调用DrawRect方法
[
self
addSubview
:
_tipIcon
];
[
self
addSubview
:
_tipIcon
];
[
self
addSubview
:
_tipLabel
];
[
_tipIcon
addSubview
:
_tipLabel
];
[
self
addSubview
:
_tipButton
];
[
self
addSubview
:
_tipButton
];
_tipLabel
.
numberOfLines
=
2
;
_tipLabel
.
numberOfLines
=
2
;
...
@@ -144,9 +144,10 @@
...
@@ -144,9 +144,10 @@
[
_tipIcon
mas_remakeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_tipIcon
mas_remakeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerX
.
equalTo
(
self
);
make
.
centerX
.
equalTo
(
self
);
make
.
centerY
.
equalTo
(
self
).
offset
(
-
75
);
make
.
centerY
.
equalTo
(
self
).
offset
(
-
75
);
// make.size.mas_equalTo(CGSizeMake(175, 198));
}];
}];
[
_tipLabel
mas_remakeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_tipLabel
mas_remakeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
equalTo
(
_tipIcon
.
mas_bottom
).
offset
(
-
35
);
make
.
bottom
.
equalTo
(
_tipIcon
.
mas_bottom
).
offset
(
-
18
);
make
.
centerX
.
mas_equalTo
(
self
);
make
.
centerX
.
mas_equalTo
(
self
);
}];
}];
[
_tipButton
mas_remakeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_tipButton
mas_remakeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment