Skip to content

Commit d13a58d

Browse files
author
Darcy Liu
committed
update to 2014-09-18, include iOS 8 samples
1 parent e584042 commit d13a58d

6,400 files changed

Lines changed: 276323 additions & 30847 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AVARLDelegateDemo.zip

31.1 KB
Binary file not shown.

AVARLDelegateDemo/AVARLDelegateDemo.xcodeproj/project.pbxproj

Lines changed: 358 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
3+
4+
File: APLAppDelegate.h
5+
Abstract: Default class from Xcode
6+
Version: 1.0
7+
8+
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
9+
Inc. ("Apple") in consideration of your agreement to the following
10+
terms, and your use, installation, modification or redistribution of
11+
this Apple software constitutes acceptance of these terms. If you do
12+
not agree with these terms, please do not use, install, modify or
13+
redistribute this Apple software.
14+
15+
In consideration of your agreement to abide by the following terms, and
16+
subject to these terms, Apple grants you a personal, non-exclusive
17+
license, under Apple's copyrights in this original Apple software (the
18+
"Apple Software"), to use, reproduce, modify and redistribute the Apple
19+
Software, with or without modifications, in source and/or binary forms;
20+
provided that if you redistribute the Apple Software in its entirety and
21+
without modifications, you must retain this notice and the following
22+
text and disclaimers in all such redistributions of the Apple Software.
23+
Neither the name, trademarks, service marks or logos of Apple Inc. may
24+
be used to endorse or promote products derived from the Apple Software
25+
without specific prior written permission from Apple. Except as
26+
expressly stated in this notice, no other rights or licenses, express or
27+
implied, are granted by Apple herein, including but not limited to any
28+
patent rights that may be infringed by your derivative works or by other
29+
works in which the Apple Software may be incorporated.
30+
31+
The Apple Software is provided by Apple on an "AS IS" basis. APPLE
32+
MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
33+
THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
34+
FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
35+
OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
36+
37+
IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
38+
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
39+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
40+
INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
41+
MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
42+
AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
43+
STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
44+
POSSIBILITY OF SUCH DAMAGE.
45+
46+
Copyright (C) 2014 Apple Inc. All Rights Reserved.
47+
48+
49+
*/
50+
#import <UIKit/UIKit.h>
51+
52+
@interface APLAppDelegate : UIResponder <UIApplicationDelegate>
53+
54+
@property (strong, nonatomic) UIWindow *window;
55+
56+
@end
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
/*
2+
3+
4+
File: APLAppDelegate.m
5+
Abstract: Default class implementation from Xcode.
6+
Version: 1.0
7+
8+
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
9+
Inc. ("Apple") in consideration of your agreement to the following
10+
terms, and your use, installation, modification or redistribution of
11+
this Apple software constitutes acceptance of these terms. If you do
12+
not agree with these terms, please do not use, install, modify or
13+
redistribute this Apple software.
14+
15+
In consideration of your agreement to abide by the following terms, and
16+
subject to these terms, Apple grants you a personal, non-exclusive
17+
license, under Apple's copyrights in this original Apple software (the
18+
"Apple Software"), to use, reproduce, modify and redistribute the Apple
19+
Software, with or without modifications, in source and/or binary forms;
20+
provided that if you redistribute the Apple Software in its entirety and
21+
without modifications, you must retain this notice and the following
22+
text and disclaimers in all such redistributions of the Apple Software.
23+
Neither the name, trademarks, service marks or logos of Apple Inc. may
24+
be used to endorse or promote products derived from the Apple Software
25+
without specific prior written permission from Apple. Except as
26+
expressly stated in this notice, no other rights or licenses, express or
27+
implied, are granted by Apple herein, including but not limited to any
28+
patent rights that may be infringed by your derivative works or by other
29+
works in which the Apple Software may be incorporated.
30+
31+
The Apple Software is provided by Apple on an "AS IS" basis. APPLE
32+
MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
33+
THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
34+
FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
35+
OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
36+
37+
IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
38+
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
39+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
40+
INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
41+
MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
42+
AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
43+
STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
44+
POSSIBILITY OF SUCH DAMAGE.
45+
46+
Copyright (C) 2014 Apple Inc. All Rights Reserved.
47+
48+
49+
*/
50+
#import "APLAppDelegate.h"
51+
52+
@implementation APLAppDelegate
53+
54+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
55+
{
56+
// Override point for customization after application launch.
57+
return YES;
58+
}
59+
60+
- (void)applicationWillResignActive:(UIApplication *)application
61+
{
62+
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
63+
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
64+
}
65+
66+
- (void)applicationDidEnterBackground:(UIApplication *)application
67+
{
68+
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
69+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
70+
}
71+
72+
- (void)applicationWillEnterForeground:(UIApplication *)application
73+
{
74+
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
75+
}
76+
77+
- (void)applicationDidBecomeActive:(UIApplication *)application
78+
{
79+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
80+
}
81+
82+
- (void)applicationWillTerminate:(UIApplication *)application
83+
{
84+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
85+
}
86+
87+
@end
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
3+
4+
File: APLCustomAVARLDelegate.h
5+
Abstract: Custom delegate (AVASssetResource protocol) class .
6+
Version: 1.0
7+
8+
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
9+
Inc. ("Apple") in consideration of your agreement to the following
10+
terms, and your use, installation, modification or redistribution of
11+
this Apple software constitutes acceptance of these terms. If you do
12+
not agree with these terms, please do not use, install, modify or
13+
redistribute this Apple software.
14+
15+
In consideration of your agreement to abide by the following terms, and
16+
subject to these terms, Apple grants you a personal, non-exclusive
17+
license, under Apple's copyrights in this original Apple software (the
18+
"Apple Software"), to use, reproduce, modify and redistribute the Apple
19+
Software, with or without modifications, in source and/or binary forms;
20+
provided that if you redistribute the Apple Software in its entirety and
21+
without modifications, you must retain this notice and the following
22+
text and disclaimers in all such redistributions of the Apple Software.
23+
Neither the name, trademarks, service marks or logos of Apple Inc. may
24+
be used to endorse or promote products derived from the Apple Software
25+
without specific prior written permission from Apple. Except as
26+
expressly stated in this notice, no other rights or licenses, express or
27+
implied, are granted by Apple herein, including but not limited to any
28+
patent rights that may be infringed by your derivative works or by other
29+
works in which the Apple Software may be incorporated.
30+
31+
The Apple Software is provided by Apple on an "AS IS" basis. APPLE
32+
MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
33+
THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
34+
FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
35+
OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
36+
37+
IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
38+
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
39+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
40+
INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
41+
MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
42+
AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
43+
STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
44+
POSSIBILITY OF SUCH DAMAGE.
45+
46+
Copyright (C) 2014 Apple Inc. All Rights Reserved.
47+
48+
49+
*/
50+
#import <UIKit/UIKit.h>
51+
#import <AVFoundation/AVAssetResourceLoader.h>
52+
53+
@interface APLCustomAVARLDelegate : NSObject <AVAssetResourceLoaderDelegate>
54+
{
55+
}
56+
57+
@end

0 commit comments

Comments
 (0)