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
baa1ad95
Commit
baa1ad95
authored
May 24, 2016
by
勾芒
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d2d48b1c
52cf1962
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
27 deletions
+70
-27
AboutViewController.h
Lighting/Class/AboutViewController.h
+5
-0
AboutViewController.m
Lighting/Class/AboutViewController.m
+21
-0
StoryboardwithCYX.storyboard
Lighting/Lighting/StoryboardwithCYX.storyboard
+44
-27
No files found.
Lighting/Class/AboutViewController.h
View file @
baa1ad95
...
@@ -10,4 +10,9 @@
...
@@ -10,4 +10,9 @@
@interface
AboutViewController
:
BaseViewController
@interface
AboutViewController
:
BaseViewController
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
versionLabe
;
@end
@end
Lighting/Class/AboutViewController.m
View file @
baa1ad95
...
@@ -17,8 +17,20 @@
...
@@ -17,8 +17,20 @@
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
// Do any additional setup after loading the view.
// Do any additional setup after loading the view.
self
.
versionLabe
.
layer
.
masksToBounds
=
YES
;
self
.
versionLabe
.
layer
.
cornerRadius
=
10
;
self
.
versionLabe
.
layer
.
borderWidth
=
2
;
self
.
versionLabe
.
layer
.
borderColor
=
kMainBlueColor
.
CGColor
;
self
.
versionLabe
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
versionLabe
.
text
=
[
self
getAppVersion
];
}
}
-
(
void
)
didReceiveMemoryWarning
{
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
// Dispose of any resources that can be recreated.
...
@@ -34,4 +46,13 @@
...
@@ -34,4 +46,13 @@
}
}
*/
*/
-
(
NSString
*
)
getAppVersion
{
NSString
*
ver
=
[[[
NSBundle
mainBundle
]
infoDictionary
]
objectForKey
:
@"CFBundleShortVersionString"
];
NSString
*
build
=
[[[
NSBundle
mainBundle
]
infoDictionary
]
objectForKey
:
@"CFBundleVersion"
];
return
[
NSString
stringWithFormat
:
@"Version %@.%@"
,
ver
,
build
];
}
@end
@end
Lighting/Lighting/StoryboardwithCYX.storyboard
View file @
baa1ad95
This diff is collapsed.
Click to expand it.
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