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
f0499e7b
Commit
f0499e7b
authored
Oct 29, 2016
by
汪洋
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jinzhu/master' into 'master'
修改OCNavgationBar标题过长处理 See merge request
!1
parents
950b459f
1c2beacd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
OCNavigatioinBar.m
GMBase/Classes/OCNavigatioinBar.m
+3
-1
No files found.
GMBase/Classes/OCNavigatioinBar.m
View file @
f0499e7b
...
@@ -44,7 +44,9 @@
...
@@ -44,7 +44,9 @@
make
.
height
.
offset
(
1
/
[
UIScreen
mainScreen
].
scale
);
make
.
height
.
offset
(
1
/
[
UIScreen
mainScreen
].
scale
);
}];
}];
_itemView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
20
,
[
UIScreen
mainScreen
].
bounds
.
size
.
width
,
44
)];
_itemView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
20
,
[
UIScreen
mainScreen
].
bounds
.
size
.
width
,
44
)];
_titleLabel
=
[[
UILabel
alloc
]
initWithFrame
:
_itemView
.
bounds
];
CGFloat
titleW
=
[
UIScreen
mainScreen
].
bounds
.
size
.
width
-
80
;
_titleLabel
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
40
,
0
,
titleW
,
44
)];
_titleLabel
.
lineBreakMode
=
NSLineBreakByTruncatingMiddle
;
_titleLabel
.
autoresizingMask
=
UIViewAutoresizingFlexibleWidth
|
UIViewAutoresizingFlexibleHeight
;
_titleLabel
.
autoresizingMask
=
UIViewAutoresizingFlexibleWidth
|
UIViewAutoresizingFlexibleHeight
;
_titleLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_titleLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_titleLabel
.
backgroundColor
=
[
UIColor
clearColor
];
_titleLabel
.
backgroundColor
=
[
UIColor
clearColor
];
...
...
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