Browse Source

Add some files

HonorLee 8 years ago
parent
commit
ee3f7de69b

+ 1 - 0
ShareSupport/zh-Hans.lproj/MainInterface.strings

@@ -0,0 +1 @@
+

+ 22 - 4
TumblrDownloader.xcodeproj/project.pbxproj

@@ -7,13 +7,14 @@
 	objects = {
 
 /* Begin PBXBuildFile section */
+		D3166D7C1C48F3F50003B6B8 /* Downloader.m in Sources */ = {isa = PBXBuildFile; fileRef = D3166D7B1C48F3F50003B6B8 /* Downloader.m */; };
+		D3166D811C48F9C20003B6B8 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = D3166D831C48F9C20003B6B8 /* Localizable.strings */; };
 		D36ACDC71C44D07E00B2C7CF /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = D36ACDC61C44D07E00B2C7CF /* main.m */; };
 		D36ACDCA1C44D07E00B2C7CF /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = D36ACDC91C44D07E00B2C7CF /* AppDelegate.m */; };
 		D36ACDCD1C44D07E00B2C7CF /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D36ACDCC1C44D07E00B2C7CF /* ViewController.m */; };
 		D36ACDD01C44D07E00B2C7CF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D36ACDCE1C44D07E00B2C7CF /* Main.storyboard */; };
 		D36ACDD21C44D07E00B2C7CF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D36ACDD11C44D07E00B2C7CF /* Assets.xcassets */; };
 		D36ACDD51C44D07E00B2C7CF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D36ACDD31C44D07E00B2C7CF /* LaunchScreen.storyboard */; };
-		D36ACDDD1C44D24B00B2C7CF /* README.md in Sources */ = {isa = PBXBuildFile; fileRef = D36ACDDC1C44D24B00B2C7CF /* README.md */; };
 		D386B1241C46991400D7E0C5 /* ShareViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D386B1231C46991400D7E0C5 /* ShareViewController.m */; };
 		D386B1271C46991400D7E0C5 /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D386B1251C46991400D7E0C5 /* MainInterface.storyboard */; };
 		D386B12B1C46991400D7E0C5 /* ShareSupport.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = D386B1201C46991400D7E0C5 /* ShareSupport.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
@@ -44,6 +45,10 @@
 /* End PBXCopyFilesBuildPhase section */
 
 /* Begin PBXFileReference section */
+		D3166D7A1C48F3F50003B6B8 /* Downloader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Downloader.h; sourceTree = "<group>"; };
+		D3166D7B1C48F3F50003B6B8 /* Downloader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Downloader.m; sourceTree = "<group>"; };
+		D3166D821C48F9C20003B6B8 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
+		D3166D881C48FA6F0003B6B8 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
 		D36ACDC21C44D07E00B2C7CF /* TumblrDownloader.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TumblrDownloader.app; sourceTree = BUILT_PRODUCTS_DIR; };
 		D36ACDC61C44D07E00B2C7CF /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
 		D36ACDC81C44D07E00B2C7CF /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
@@ -54,7 +59,6 @@
 		D36ACDD11C44D07E00B2C7CF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
 		D36ACDD41C44D07E00B2C7CF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
 		D36ACDD61C44D07E00B2C7CF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
-		D36ACDDC1C44D24B00B2C7CF /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
 		D386B1201C46991400D7E0C5 /* ShareSupport.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = ShareSupport.appex; sourceTree = BUILT_PRODUCTS_DIR; };
 		D386B1221C46991400D7E0C5 /* ShareViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ShareViewController.h; sourceTree = "<group>"; };
 		D386B1231C46991400D7E0C5 /* ShareViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ShareViewController.m; sourceTree = "<group>"; };
@@ -85,7 +89,6 @@
 		D36ACDB91C44D07E00B2C7CF = {
 			isa = PBXGroup;
 			children = (
-				D36ACDDC1C44D24B00B2C7CF /* README.md */,
 				D36ACDC41C44D07E00B2C7CF /* TumblrDownloader */,
 				D386B1211C46991400D7E0C5 /* ShareSupport */,
 				D36ACDC31C44D07E00B2C7CF /* Products */,
@@ -122,6 +125,9 @@
 			isa = PBXGroup;
 			children = (
 				D36ACDC61C44D07E00B2C7CF /* main.m */,
+				D3166D7A1C48F3F50003B6B8 /* Downloader.h */,
+				D3166D7B1C48F3F50003B6B8 /* Downloader.m */,
+				D3166D831C48F9C20003B6B8 /* Localizable.strings */,
 			);
 			name = "Supporting Files";
 			sourceTree = "<group>";
@@ -216,6 +222,7 @@
 			knownRegions = (
 				en,
 				Base,
+				"zh-Hans",
 			);
 			mainGroup = D36ACDB91C44D07E00B2C7CF;
 			productRefGroup = D36ACDC31C44D07E00B2C7CF /* Products */;
@@ -234,6 +241,7 @@
 			buildActionMask = 2147483647;
 			files = (
 				D36ACDD51C44D07E00B2C7CF /* LaunchScreen.storyboard in Resources */,
+				D3166D811C48F9C20003B6B8 /* Localizable.strings in Resources */,
 				D36ACDD21C44D07E00B2C7CF /* Assets.xcassets in Resources */,
 				D36ACDD01C44D07E00B2C7CF /* Main.storyboard in Resources */,
 			);
@@ -256,7 +264,7 @@
 			files = (
 				D36ACDCD1C44D07E00B2C7CF /* ViewController.m in Sources */,
 				D36ACDCA1C44D07E00B2C7CF /* AppDelegate.m in Sources */,
-				D36ACDDD1C44D24B00B2C7CF /* README.md in Sources */,
+				D3166D7C1C48F3F50003B6B8 /* Downloader.m in Sources */,
 				D36ACDC71C44D07E00B2C7CF /* main.m in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
@@ -280,6 +288,15 @@
 /* End PBXTargetDependency section */
 
 /* Begin PBXVariantGroup section */
+		D3166D831C48F9C20003B6B8 /* Localizable.strings */ = {
+			isa = PBXVariantGroup;
+			children = (
+				D3166D821C48F9C20003B6B8 /* en */,
+				D3166D881C48FA6F0003B6B8 /* zh-Hans */,
+			);
+			name = Localizable.strings;
+			sourceTree = "<group>";
+		};
 		D36ACDCE1C44D07E00B2C7CF /* Main.storyboard */ = {
 			isa = PBXVariantGroup;
 			children = (
@@ -475,6 +492,7 @@
 				D386B12D1C46991400D7E0C5 /* Release */,
 			);
 			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
 		};
 /* End XCConfigurationList section */
 	};

+ 23 - 0
TumblrDownloader.xcodeproj/xcuserdata/HonorLee.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Bucket
+   type = "1"
+   version = "2.0">
+   <Breakpoints>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "Yes"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "TumblrDownloader/Downloader.m"
+            timestampString = "474543301.156208"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "11"
+            endingLineNumber = "11"
+            landmarkName = "@implementation Downloader"
+            landmarkType = "3">
+         </BreakpointContent>
+      </BreakpointProxy>
+   </Breakpoints>
+</Bucket>

+ 1 - 0
TumblrDownloader/AppDelegate.m

@@ -17,6 +17,7 @@
 
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
     // Override point for customization after application launch.
+    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
     return YES;
 }
 

+ 40 - 3
TumblrDownloader/Base.lproj/Main.storyboard

@@ -34,6 +34,11 @@
                             </tableView>
                             <navigationBar contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vdl-3W-IOG">
                                 <rect key="frame" x="0.0" y="20" width="600" height="44"/>
+                                <color key="backgroundColor" red="0.0" green="0.75051394509145941" blue="1" alpha="1" colorSpace="calibratedRGB"/>
+                                <color key="barTintColor" red="0.0" green="0.75051394510000002" blue="1" alpha="1" colorSpace="calibratedRGB"/>
+                                <textAttributes key="titleTextAttributes">
+                                    <color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+                                </textAttributes>
                                 <items>
                                     <navigationItem title="Title" id="gWa-wn-rsp"/>
                                 </items>
@@ -185,19 +190,50 @@
             </objects>
             <point key="canvasLocation" x="744" y="-880"/>
         </scene>
-        <!--Tab Bar Controller-->
+        <!--帮助-->
+        <scene sceneID="wQx-7K-ql9">
+            <objects>
+                <viewController id="uHM-on-S1a" sceneMemberID="viewController">
+                    <layoutGuides>
+                        <viewControllerLayoutGuide type="top" id="Uv5-Hg-of9"/>
+                        <viewControllerLayoutGuide type="bottom" id="bKe-da-o5t"/>
+                    </layoutGuides>
+                    <view key="view" contentMode="scaleToFill" id="E8Q-U3-hAh">
+                        <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <subviews>
+                            <view contentMode="scaleToFill" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="kno-Tp-DgL">
+                                <rect key="frame" x="0.0" y="20" width="600" height="531"/>
+                                <color key="backgroundColor" red="0.0" green="0.74901960784313726" blue="1" alpha="1" colorSpace="calibratedRGB"/>
+                            </view>
+                        </subviews>
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+                        <constraints>
+                            <constraint firstItem="bKe-da-o5t" firstAttribute="top" secondItem="kno-Tp-DgL" secondAttribute="bottom" constant="-1" id="mzc-Hr-ztt"/>
+                        </constraints>
+                    </view>
+                    <tabBarItem key="tabBarItem" title="帮助" id="lHx-Th-RK7"/>
+                    <simulatedTabBarMetrics key="simulatedBottomBarMetrics"/>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="AxE-YJ-0FY" userLabel="First Responder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="-28" y="-817"/>
+        </scene>
+        <!--View Controller-->
         <scene sceneID="PXu-Y3-cBB">
             <objects>
-                <tabBarController id="FsU-Vj-dMB" sceneMemberID="viewController">
+                <tabBarController id="FsU-Vj-dMB" customClass="ViewController" sceneMemberID="viewController">
+                    <simulatedTabBarMetrics key="simulatedBottomBarMetrics"/>
                     <tabBar key="tabBar" contentMode="scaleToFill" id="kql-wo-lwi">
                         <rect key="frame" x="0.0" y="0.0" width="320" height="49"/>
                         <autoresizingMask key="autoresizingMask"/>
-                        <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+                        <color key="selectedImageTintColor" red="1" green="0.99955752580000001" blue="0.98455774269999996" alpha="1" colorSpace="calibratedRGB"/>
                     </tabBar>
                     <connections>
                         <segue destination="ChQ-OW-gSd" kind="relationship" relationship="viewControllers" id="Hrc-Al-8KY"/>
                         <segue destination="lRI-Iw-dTA" kind="relationship" relationship="viewControllers" id="zuR-mL-s4n"/>
                         <segue destination="2Qi-2r-owq" kind="relationship" relationship="viewControllers" id="kP5-B8-Rf0"/>
+                        <segue destination="uHM-on-S1a" kind="relationship" relationship="viewControllers" id="iO9-od-1hL"/>
                     </connections>
                 </tabBarController>
                 <placeholder placeholderIdentifier="IBFirstResponder" id="rkm-RZ-l2D" userLabel="First Responder" sceneMemberID="firstResponder"/>
@@ -205,4 +241,5 @@
             <point key="canvasLocation" x="-28" y="-111"/>
         </scene>
     </scenes>
+    <color key="tintColor" red="0.98380684279999997" green="0.9814170069" blue="1" alpha="1" colorSpace="calibratedRGB"/>
 </document>

+ 13 - 0
TumblrDownloader/Downloader.h

@@ -0,0 +1,13 @@
+//
+//  Downloader.h
+//  TumblrDownloader
+//
+//  Created by HonorLee on 16/1/15.
+//  Copyright © 2016年 HonorLee. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+@interface Downloader : NSObject<NSURLSessionDownloadDelegate>
+
+@end

+ 24 - 0
TumblrDownloader/Downloader.m

@@ -0,0 +1,24 @@
+//
+//  Downloader.m
+//  TumblrDownloader
+//
+//  Created by HonorLee on 16/1/15.
+//  Copyright © 2016年 HonorLee. All rights reserved.
+//
+
+#import "Downloader.h"
+
+@implementation Downloader
+
+
+#pragma NSURLSessionDownloadDelegate
+//  After Download Complete
+-(void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error{
+
+}
+
+//  Data Trans Finish & move the temp file to Document
+-(void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask didFinishDownloadingToURL:(NSURL *)location{
+    
+}
+@end

+ 4 - 2
TumblrDownloader/Info.plist

@@ -2,6 +2,8 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
+	<key>UIViewControllerBasedStatusBarAppearance</key>
+	<false/>
 	<key>CFBundleDevelopmentRegion</key>
 	<string>en</string>
 	<key>CFBundleExecutable</key>
@@ -22,6 +24,8 @@
 	<string>1</string>
 	<key>LSRequiresIPhoneOS</key>
 	<true/>
+	<key>UIFileSharingEnabled</key>
+	<true/>
 	<key>UILaunchStoryboardName</key>
 	<string>LaunchScreen</string>
 	<key>UIMainStoryboardFile</key>
@@ -33,8 +37,6 @@
 	<key>UISupportedInterfaceOrientations</key>
 	<array>
 		<string>UIInterfaceOrientationPortrait</string>
-		<string>UIInterfaceOrientationLandscapeLeft</string>
-		<string>UIInterfaceOrientationLandscapeRight</string>
 	</array>
 </dict>
 </plist>

+ 1 - 2
TumblrDownloader/ViewController.h

@@ -8,8 +8,7 @@
 
 #import <UIKit/UIKit.h>
 
-@interface ViewController : UIViewController
-
+@interface ViewController : UITabBarController
 
 @end
 

+ 12 - 0
TumblrDownloader/ViewController.m

@@ -17,6 +17,18 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view, typically from a nib.
+//    UIView *bgView = [[UIView alloc]initWithFrame:self.tabBar.bounds];
+//    bgView.backgroundColor = [UIColor orangeColor];
+//    [self.tabBar insertSubview:bgView atIndex:0];
+//    self.tabBar.opaque = YES;
+//    UITabBar *tab = [self.tabBar.items objectAtIndex:0];
+//    [tabBar setTintColor:[UIColor orangeColor]];[CIColor colorWithString:@"#00bfff"];
+    self.tabBar.barTintColor = [UIColor colorWithRed:0/255.0 green:191/255.0 blue:255/255.0 alpha:1];
+    self.tabBar.tintColor = [UIColor whiteColor];
+    self.tabBar.opaque = NO;
+    self.tabBar.translucent = NO;
+    [self.tabBar setValue:@(YES) forKeyPath:@"_hidesShadow"];
+    [self.navigationController.navigationBar setBarTintColor:[UIColor colorWithRed:0/255.0 green:191/255.0 blue:255/255.0 alpha:1]];
 }
 
 - (void)didReceiveMemoryWarning {

+ 7 - 0
TumblrDownloader/en.lproj/Localizable.strings

@@ -0,0 +1,7 @@
+/* 
+  Localizable.strings
+  TumblrDownloader
+
+  Created by HonorLee on 16/1/15.
+  Copyright © 2016年 HonorLee. All rights reserved.
+*/

+ 18 - 0
TumblrDownloader/en.lproj/Main.strings

@@ -0,0 +1,18 @@
+
+/* Class = "UINavigationItem"; title = "Title"; ObjectID = "1bI-kf-fwy"; */
+"1bI-kf-fwy.title" = "Title";
+
+/* Class = "UITabBarItem"; title = "待下载"; ObjectID = "Uvb-Oj-AKd"; */
+"Uvb-Oj-AKd.title" = "待下载";
+
+/* Class = "UINavigationItem"; title = "Title"; ObjectID = "VB3-Uk-rM5"; */
+"VB3-Uk-rM5.title" = "Title";
+
+/* Class = "UINavigationItem"; title = "Title"; ObjectID = "gWa-wn-rsp"; */
+"gWa-wn-rsp.title" = "Title";
+
+/* Class = "UITabBarItem"; title = "队列中"; ObjectID = "hcI-f6-L65"; */
+"hcI-f6-L65.title" = "队列中";
+
+/* Class = "UITabBarItem"; title = "已完成"; ObjectID = "l3s-Qp-SNw"; */
+"l3s-Qp-SNw.title" = "已完成";

+ 1 - 0
TumblrDownloader/zh-Hans.lproj/LaunchScreen.strings

@@ -0,0 +1 @@
+

+ 7 - 0
TumblrDownloader/zh-Hans.lproj/Localizable.strings

@@ -0,0 +1,7 @@
+/* 
+  Localizable.strings
+  TumblrDownloader
+
+  Created by HonorLee on 16/1/15.
+  Copyright © 2016年 HonorLee. All rights reserved.
+*/

+ 18 - 0
TumblrDownloader/zh-Hans.lproj/Main.strings

@@ -0,0 +1,18 @@
+
+/* Class = "UINavigationItem"; title = "Title"; ObjectID = "1bI-kf-fwy"; */
+"1bI-kf-fwy.title" = "Title";
+
+/* Class = "UITabBarItem"; title = "待下载"; ObjectID = "Uvb-Oj-AKd"; */
+"Uvb-Oj-AKd.title" = "待下载";
+
+/* Class = "UINavigationItem"; title = "Title"; ObjectID = "VB3-Uk-rM5"; */
+"VB3-Uk-rM5.title" = "Title";
+
+/* Class = "UINavigationItem"; title = "Title"; ObjectID = "gWa-wn-rsp"; */
+"gWa-wn-rsp.title" = "Title";
+
+/* Class = "UITabBarItem"; title = "队列中"; ObjectID = "hcI-f6-L65"; */
+"hcI-f6-L65.title" = "队列中";
+
+/* Class = "UITabBarItem"; title = "已完成"; ObjectID = "l3s-Qp-SNw"; */
+"l3s-Qp-SNw.title" = "已完成";