Skip to content

Commit b14cdf8

Browse files
committed
文件详情 - 共享&信息&删除&其他应用打开
1 parent 376caa5 commit b14cdf8

15 files changed

Lines changed: 302 additions & 29 deletions

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@
287287
4E93F23C1B84356500017916 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E93F2371B84356500017916 /* [email protected] */; };
288288
4E93F23D1B84356500017916 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E93F2381B84356500017916 /* [email protected] */; };
289289
4E93F23E1B84356500017916 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E93F2391B84356500017916 /* [email protected] */; };
290+
4E93F2441B85C4C300017916 /* FileInfoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E93F2421B85C4C300017916 /* FileInfoViewController.m */; };
291+
4E93F2451B85C4C300017916 /* FileInfoViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4E93F2431B85C4C300017916 /* FileInfoViewController.xib */; };
290292
4E94C4E71B4A6AC700EB668A /* ScanBGView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E94C4E61B4A6AC700EB668A /* ScanBGView.m */; };
291293
4E94C4ED1B4A867A00EB668A /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E94C4EC1B4A867A00EB668A /* [email protected] */; };
292294
4E94C4EF1B4B73BB00EB668A /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4E94C4EE1B4B73BB00EB668A /* [email protected] */; };
@@ -382,7 +384,6 @@
382384
4EAE06A81B7B1AE100179F4B /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 4EAE06A61B7B1AE100179F4B /* [email protected] */; };
383385
4EAE06AB1B7B23EA00179F4B /* FileActivitiesViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EAE06AA1B7B23EA00179F4B /* FileActivitiesViewController.m */; };
384386
4EAE06AE1B7B241A00179F4B /* FileVersionsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EAE06AD1B7B241A00179F4B /* FileVersionsViewController.m */; };
385-
4EAE06B11B7B248F00179F4B /* FileInfoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EAE06B01B7B248F00179F4B /* FileInfoViewController.m */; };
386387
4EAE06B41B7B325600179F4B /* FileCommentCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EAE06B31B7B325600179F4B /* FileCommentCell.m */; };
387388
4EAE06B71B7B330900179F4B /* FileActivityCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EAE06B61B7B330900179F4B /* FileActivityCell.m */; };
388389
4EAE06BA1B7B47A700179F4B /* FileVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EAE06B91B7B47A700179F4B /* FileVersion.m */; };
@@ -1290,6 +1291,9 @@
12901291
4E93F2371B84356500017916 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
12911292
4E93F2381B84356500017916 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
12921293
4E93F2391B84356500017916 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
1294+
4E93F2411B85C4C300017916 /* FileInfoViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileInfoViewController.h; sourceTree = "<group>"; };
1295+
4E93F2421B85C4C300017916 /* FileInfoViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FileInfoViewController.m; sourceTree = "<group>"; };
1296+
4E93F2431B85C4C300017916 /* FileInfoViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = FileInfoViewController.xib; sourceTree = "<group>"; };
12931297
4E94C4E51B4A6AC700EB668A /* ScanBGView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScanBGView.h; sourceTree = "<group>"; };
12941298
4E94C4E61B4A6AC700EB668A /* ScanBGView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ScanBGView.m; sourceTree = "<group>"; };
12951299
4E94C4EC1B4A867A00EB668A /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
@@ -1437,8 +1441,6 @@
14371441
4EAE06AA1B7B23EA00179F4B /* FileActivitiesViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FileActivitiesViewController.m; sourceTree = "<group>"; };
14381442
4EAE06AC1B7B241A00179F4B /* FileVersionsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileVersionsViewController.h; sourceTree = "<group>"; };
14391443
4EAE06AD1B7B241A00179F4B /* FileVersionsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FileVersionsViewController.m; sourceTree = "<group>"; };
1440-
4EAE06AF1B7B248F00179F4B /* FileInfoViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileInfoViewController.h; sourceTree = "<group>"; };
1441-
4EAE06B01B7B248F00179F4B /* FileInfoViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FileInfoViewController.m; sourceTree = "<group>"; };
14421444
4EAE06B21B7B325600179F4B /* FileCommentCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileCommentCell.h; sourceTree = "<group>"; };
14431445
4EAE06B31B7B325600179F4B /* FileCommentCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FileCommentCell.m; sourceTree = "<group>"; };
14441446
4EAE06B51B7B330900179F4B /* FileActivityCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileActivityCell.h; sourceTree = "<group>"; };
@@ -3535,8 +3537,9 @@
35353537
4EAE06AA1B7B23EA00179F4B /* FileActivitiesViewController.m */,
35363538
4EAE06AC1B7B241A00179F4B /* FileVersionsViewController.h */,
35373539
4EAE06AD1B7B241A00179F4B /* FileVersionsViewController.m */,
3538-
4EAE06AF1B7B248F00179F4B /* FileInfoViewController.h */,
3539-
4EAE06B01B7B248F00179F4B /* FileInfoViewController.m */,
3540+
4E93F2411B85C4C300017916 /* FileInfoViewController.h */,
3541+
4E93F2421B85C4C300017916 /* FileInfoViewController.m */,
3542+
4E93F2431B85C4C300017916 /* FileInfoViewController.xib */,
35403543
);
35413544
path = Controllers;
35423545
sourceTree = "<group>";
@@ -4484,6 +4487,7 @@
44844487
4EF17EDD1B3C3112003CDD2D /* [email protected] in Resources */,
44854488
8E97CE9F1A0C7E26006F9AD7 /* [email protected] in Resources */,
44864489
4E6383E51B3272CF00D98648 /* [email protected] in Resources */,
4490+
4E93F2451B85C4C300017916 /* FileInfoViewController.xib in Resources */,
44874491
0A782FDE1AB5B78B00E96661 /* TweetSendCreateLocationCell.xib in Resources */,
44884492
8E8F7B3219EF6306006BA8BD /* [email protected] in Resources */,
44894493
8E97CEBB1A0C7E26006F9AD7 /* [email protected] in Resources */,
@@ -5095,7 +5099,6 @@
50955099
3A38783A1AE2949E0078D5DE /* ResetLabelViewController.m in Sources */,
50965100
4EAE06A41B7AE4EF00179F4B /* FileComment.m in Sources */,
50975101
8EA6D13C19E240C40076D59C /* Tweet_RootViewController.m in Sources */,
5098-
4EAE06B11B7B248F00179F4B /* FileInfoViewController.m in Sources */,
50995102
B93D904B1ACBA3110057A6EE /* ProjectDeleteAlertControllerVisualStyle.m in Sources */,
51005103
4E1A22851AB172C400CFC14F /* ProjectItemsCell.m in Sources */,
51015104
4ECE8B051A3946C10021E29C /* WebContentManager.m in Sources */,
@@ -5199,6 +5202,7 @@
51995202
8EA6D1FB19E240C40076D59C /* MJPhotoToolbar.m in Sources */,
52005203
8EF643CF19FF7E2900F7EEB0 /* TweetDetailCommentCell.m in Sources */,
52015204
4E4D6A8E1B1D5B9A00FD2E49 /* MRPRBaseInfo.m in Sources */,
5205+
4E93F2441B85C4C300017916 /* FileInfoViewController.m in Sources */,
52025206
4E4D6A9A1B1D893500FD2E49 /* CommitInfo.m in Sources */,
52035207
4E38CF5F1A7A28AF005536C0 /* CodeBranchTagButton.m in Sources */,
52045208
8E64ED8119ED0CE3006E99DA /* QBAssetsCollectionViewLayout.m in Sources */,

Coding_iOS/Controllers/FileInfoViewController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// FileInfoViewController.h
33
// Coding_iOS
44
//
5-
// Created by Ease on 15/8/12.
5+
// Created by Ease on 15/8/20.
66
// Copyright (c) 2015年 Coding. All rights reserved.
77
//
88

Coding_iOS/Controllers/FileInfoViewController.m

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// FileInfoViewController.m
33
// Coding_iOS
44
//
5-
// Created by Ease on 15/8/12.
5+
// Created by Ease on 15/8/20.
66
// Copyright (c) 2015年 Coding. All rights reserved.
77
//
88

@@ -11,6 +11,13 @@
1111
@interface FileInfoViewController ()
1212
@property (strong, nonatomic) ProjectFile *curFile;
1313

14+
@property (weak, nonatomic) IBOutlet UILabel *finenameL;
15+
@property (weak, nonatomic) IBOutlet UILabel *numL;
16+
@property (weak, nonatomic) IBOutlet UILabel *typeL;
17+
@property (weak, nonatomic) IBOutlet UILabel *sizeL;
18+
@property (weak, nonatomic) IBOutlet UILabel *createL;
19+
@property (weak, nonatomic) IBOutlet UILabel *updateL;
20+
@property (weak, nonatomic) IBOutlet UILabel *createUserL;
1421
@end
1522

1623
@implementation FileInfoViewController
@@ -19,4 +26,23 @@ + (instancetype)vcWithFile:(ProjectFile *)file{
1926
vc.curFile = file;
2027
return vc;
2128
}
29+
30+
- (void)viewDidLoad {
31+
[super viewDidLoad];
32+
// Do any additional setup after loading the view from its nib.
33+
self.title = @"文件信息";
34+
self.finenameL.text = _curFile.name;
35+
self.numL.text = [NSString stringWithFormat:@"#%@", _curFile.number.stringValue];
36+
self.typeL.text = [NSString stringWithFormat:@".%@", _curFile.fileType];
37+
self.sizeL.text = [NSString sizeDisplayWithByte:_curFile.size.floatValue];
38+
self.createL.text = [_curFile.created_at stringTimesAgo];
39+
self.updateL.text = [_curFile.updated_at stringTimesAgo];
40+
self.createUserL.text = _curFile.owner.name;
41+
}
42+
43+
- (void)didReceiveMemoryWarning {
44+
[super didReceiveMemoryWarning];
45+
// Dispose of any resources that can be recreated.
46+
}
47+
2248
@end

0 commit comments

Comments
 (0)