FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Coding-iOS/Coding_iOS/Controllers/FileInfoViewController.m at master · YUCoderSW/Coding-iOS · GitHub
YUCoderSW
/
Coding-iOS
Public
forked from
coding/Coding-iOS
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Coding-iOS
/
Coding_iOS
/
Controllers
/
FileInfoViewController.m
Copy path
More file actions
More file actions
Latest commit
History
History
History
48 lines (41 loc) · 1.54 KB
Breadcrumbs
Coding-iOS
/
Coding_iOS
/
Controllers
/
FileInfoViewController.m
Copy path
File metadata and controls
48 lines (41 loc) · 1.54 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
//
FileInfoViewController.m
//
Coding_iOS
//
//
Created by Ease on 15/8/20.
//
Copyright (c) 2015年 Coding. All rights reserved.
//
#
import
"
FileInfoViewController.h
"
@interface
FileInfoViewController
()
@property
(
strong
,
nonatomic
) ProjectFile *curFile;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel *finenameL;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel *numL;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel *typeL;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel *sizeL;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel *createL;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel *updateL;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel *createUserL;
@end
@implementation
FileInfoViewController
+ (
instancetype
)
vcWithFile
:
(ProjectFile *)
file
{
FileInfoViewController *vc = [
self
new
];
vc.
curFile
= file;
return
vc;
}
- (
void
)
viewDidLoad
{
[
super
viewDidLoad
];
//
Do any additional setup after loading the view from its nib.
self.
title
=
@"
文件信息
"
;
self.
finenameL
.
text
= _curFile.
name
;
self.
numL
.
text
= [
NSString
stringWithFormat:
@"
#
%@
"
, _curFile.number.stringValue];
self.
typeL
.
text
= [
NSString
stringWithFormat:
@"
.
%@
"
, _curFile.fileType];
self.
sizeL
.
text
= [
NSString
sizeDisplayWithByte:
_curFile.size.floatValue];
self.
createL
.
text
= [_curFile.created_at
stringTimesAgo
];
self.
updateL
.
text
= [_curFile.updated_at
stringTimesAgo
];
self.
createUserL
.
text
= _curFile.
owner
.
name
;
}
- (
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
//
Dispose of any resources that can be recreated.
}
@end
Back
|
FazBrowse Home
|
New Git URL