Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-iOS
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Opple-iOS
Commits
560d2699
Commit
560d2699
authored
May 18, 2016
by
polo2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改右侧功能菜单的头部
parent
5e0d9609
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
RightViewController.m
Lighting/Class/RightViewController.m
+11
-5
No files found.
Lighting/Class/RightViewController.m
View file @
560d2699
...
...
@@ -79,11 +79,17 @@
#pragma mark -头部视图
-
(
void
)
createHeaderview
{
UIView
*
headerView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
RightWidth
,
200
)];
UIImageView
*
imageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
80
,
80
)];
imageView
.
center
=
CGPointMake
(
RightWidth
/
2
,
100
);
imageView
.
image
=
TCImage
(
@"weibo"
);
[
headerView
addSubview
:
imageView
];
UIView
*
headerView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
RightWidth
,
NavigationHeight
)];
//UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 13, 115, 35)];
//imageView.center = CGPointMake(RightWidth/2, 100);
//imageView.image = TCImage(@"欧");
//[headerView addSubview:imageView];
headerView
.
backgroundColor
=
[
UIColor
colorWithRed
:
61
.
0
f
/
255
.
0
f
green
:
171
.
0
f
/
255
.
0
f
blue
:
225
.
0
f
/
255
.
0
f
alpha
:
1
];
UILabel
*
label
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
RightWidth
/
4
,
13
,
115
,
35
)];
label
.
text
=
@"功能菜单"
;
label
.
font
=
[
UIFont
fontWithName
:
@"Helvetica"
size
:
20
.
0
];
[
label
setTextColor
:[
UIColor
whiteColor
]];
[
headerView
addSubview
:
label
];
self
.
rightTableview
.
tableHeaderView
=
headerView
;
}
...
...
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