GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Coding-iOS/Coding_iOS/Controllers/FileInfoViewController.m at master · JanCong/Coding-iOS

Expand file tree

/

FileInfoViewController.m

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
48 lines (41 loc) · 1.54 KB
/

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
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.