Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
Zip
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
YongYue
Zip
Commits
9063f1c3
Commit
9063f1c3
authored
Jan 17, 2016
by
Roy Marmelstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy contents of bundle to documents folder
parent
63cdd914
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
0 deletions
+31
-0
examples/Sample/Sample.xcodeproj/project.pbxproj
examples/Sample/Sample.xcodeproj/project.pbxproj
+16
-0
examples/Sample/Sample/AppDelegate.swift
examples/Sample/Sample/AppDelegate.swift
+15
-0
examples/Sample/Sample/Image1.jpg
examples/Sample/Sample/Image1.jpg
+0
-0
examples/Sample/Sample/Image2.jpg
examples/Sample/Sample/Image2.jpg
+0
-0
examples/Sample/Sample/Image3.jpg
examples/Sample/Sample/Image3.jpg
+0
-0
examples/Sample/Sample/Images.zip
examples/Sample/Sample/Images.zip
+0
-0
No files found.
examples/Sample/Sample.xcodeproj/project.pbxproj
View file @
9063f1c3
...
...
@@ -15,6 +15,10 @@
3430F6991C45C949007473A6
/* Zip.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3430F6961C45C93F007473A6
/* Zip.framework */
;
};
3430F69A1C45C949007473A6
/* Zip.framework in Embed Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3430F6961C45C93F007473A6
/* Zip.framework */
;
settings
=
{
ATTRIBUTES
=
(
CodeSignOnCopy
,
RemoveHeadersOnCopy
,
);
};
};
3467DAED1C4BADB700BA3DB8
/* FileBrowser.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3467DAEC1C4BADB700BA3DB8
/* FileBrowser.swift */
;
};
3467DAF31C4BF17900BA3DB8
/* Image1.jpg in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3467DAEF1C4BF17900BA3DB8
/* Image1.jpg */
;
};
3467DAF41C4BF17900BA3DB8
/* Image2.jpg in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3467DAF01C4BF17900BA3DB8
/* Image2.jpg */
;
};
3467DAF51C4BF17900BA3DB8
/* Image3.jpg in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3467DAF11C4BF17900BA3DB8
/* Image3.jpg */
;
};
3467DAF61C4BF17900BA3DB8
/* Images.zip in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3467DAF21C4BF17900BA3DB8
/* Images.zip */
;
};
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
...
...
@@ -74,6 +78,10 @@
3430F6871C45C930007473A6
/* Info.plist */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.plist.xml
;
path
=
Info.plist
;
sourceTree
=
"<group>"
;
};
3430F6901C45C93F007473A6
/* Zip.xcodeproj */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"wrapper.pb-project"
;
name
=
Zip.xcodeproj
;
path
=
../../Zip.xcodeproj
;
sourceTree
=
"<group>"
;
};
3467DAEC1C4BADB700BA3DB8
/* FileBrowser.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
FileBrowser.swift
;
sourceTree
=
"<group>"
;
};
3467DAEF1C4BF17900BA3DB8
/* Image1.jpg */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.jpeg
;
path
=
Image1.jpg
;
sourceTree
=
"<group>"
;
};
3467DAF01C4BF17900BA3DB8
/* Image2.jpg */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.jpeg
;
path
=
Image2.jpg
;
sourceTree
=
"<group>"
;
};
3467DAF11C4BF17900BA3DB8
/* Image3.jpg */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.jpeg
;
path
=
Image3.jpg
;
sourceTree
=
"<group>"
;
};
3467DAF21C4BF17900BA3DB8
/* Images.zip */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
archive.zip
;
path
=
Images.zip
;
sourceTree
=
"<group>"
;
};
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
...
...
@@ -119,6 +127,10 @@
children
=
(
3430F6701C45C930007473A6
/* AppDelegate.swift */
,
3467DAEC1C4BADB700BA3DB8
/* FileBrowser.swift */
,
3467DAEF1C4BF17900BA3DB8
/* Image1.jpg */
,
3467DAF01C4BF17900BA3DB8
/* Image2.jpg */
,
3467DAF11C4BF17900BA3DB8
/* Image3.jpg */
,
3467DAF21C4BF17900BA3DB8
/* Images.zip */
,
3430F6741C45C930007473A6
/* Main.storyboard */
,
3430F6771C45C930007473A6
/* Assets.xcassets */
,
3430F6791C45C930007473A6
/* LaunchScreen.storyboard */
,
...
...
@@ -251,7 +263,11 @@
isa
=
PBXResourcesBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
3467DAF41C4BF17900BA3DB8
/* Image2.jpg in Resources */
,
3467DAF51C4BF17900BA3DB8
/* Image3.jpg in Resources */
,
3430F67B1C45C930007473A6
/* LaunchScreen.storyboard in Resources */
,
3467DAF61C4BF17900BA3DB8
/* Images.zip in Resources */
,
3467DAF31C4BF17900BA3DB8
/* Image1.jpg in Resources */
,
3430F6781C45C930007473A6
/* Assets.xcassets in Resources */
,
3430F6761C45C930007473A6
/* Main.storyboard in Resources */
,
);
...
...
examples/Sample/Sample/AppDelegate.swift
View file @
9063f1c3
...
...
@@ -15,6 +15,21 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func
application
(
application
:
UIApplication
,
didFinishLaunchingWithOptions
launchOptions
:
[
NSObject
:
AnyObject
]?)
->
Bool
{
if
NSUserDefaults
.
standardUserDefaults
()
.
boolForKey
(
"firstLaunch"
)
==
false
{
NSUserDefaults
.
standardUserDefaults
()
.
setBool
(
true
,
forKey
:
"firstLaunch"
)
NSUserDefaults
.
standardUserDefaults
()
.
synchronize
()
let
fileManager
=
NSFileManager
.
defaultManager
()
let
fileNames
=
[
"Image1.jpg"
,
"Image2.jpg"
,
"Image3.jpg"
,
"Images.zip"
]
let
documentsUrl
=
fileManager
.
URLsForDirectory
(
.
DocumentDirectory
,
inDomains
:
.
UserDomainMask
)[
0
]
as
NSURL
let
bundleUrl
=
NSBundle
.
mainBundle
()
.
resourceURL
for
file
in
fileNames
{
if
let
srcPath
=
bundleUrl
?
.
URLByAppendingPathComponent
(
file
)
.
path
,
let
toPath
=
documentsUrl
.
URLByAppendingPathComponent
(
file
)
.
path
{
do
{
try
fileManager
.
copyItemAtPath
(
srcPath
,
toPath
:
toPath
)
}
catch
{}
}
}
}
// Override point for customization after application launch.
return
true
}
...
...
examples/Sample/Sample/Image1.jpg
0 → 100644
View file @
9063f1c3
26 KB
examples/Sample/Sample/Image2.jpg
0 → 100644
View file @
9063f1c3
188 KB
examples/Sample/Sample/Image3.jpg
0 → 100644
View file @
9063f1c3
49.7 KB
examples/Sample/Sample/Images.zip
0 → 100644
View file @
9063f1c3
File added
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