Skip to content

Commit 58428c9

Browse files
committed
Clean up demo project.
1 parent 34b8c65 commit 58428c9

File tree

6 files changed

+48
-311
lines changed

6 files changed

+48
-311
lines changed

Demo/SVPullToRefreshDemo.xcodeproj/project.pbxproj

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
22E0D94B1545F63300BB6BB5 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 22E0D94A1545F63300BB6BB5 /* README.md */; };
2222
22FDEC971639082E00DB53A8 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 22FDEC961639082E00DB53A8 /* [email protected] */; };
2323
22FDEC9D16390CC800DB53A8 /* UIScrollView+SVInfiniteScrolling.m in Sources */ = {isa = PBXBuildFile; fileRef = 2288146016047C06005C6461 /* UIScrollView+SVInfiniteScrolling.m */; };
24-
8E7FDB661640EBA200EE63E5 /* SVRootViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8E7FDB641640EBA200EE63E5 /* SVRootViewController.m */; };
25-
8E7FDB671640EBA200EE63E5 /* SVRootViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8E7FDB651640EBA200EE63E5 /* SVRootViewController.xib */; };
2624
/* End PBXBuildFile section */
2725

2826
/* Begin PBXFileReference section */
@@ -48,9 +46,6 @@
4846
22E0D9401545EE9000BB6BB5 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
4947
22E0D94A1545F63300BB6BB5 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = README.md; path = ../README.md; sourceTree = "<group>"; };
5048
22FDEC961639082E00DB53A8 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "[email protected]"; path = "../[email protected]"; sourceTree = "<group>"; };
51-
8E7FDB631640EBA200EE63E5 /* SVRootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVRootViewController.h; sourceTree = "<group>"; };
52-
8E7FDB641640EBA200EE63E5 /* SVRootViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SVRootViewController.m; sourceTree = "<group>"; };
53-
8E7FDB651640EBA200EE63E5 /* SVRootViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SVRootViewController.xib; sourceTree = "<group>"; };
5449
/* End PBXFileReference section */
5550

5651
/* Begin PBXFrameworksBuildPhase section */
@@ -104,9 +99,6 @@
10499
children = (
105100
22E0D9271545EE5B00BB6BB5 /* SVAppDelegate.h */,
106101
22E0D9281545EE5B00BB6BB5 /* SVAppDelegate.m */,
107-
8E7FDB631640EBA200EE63E5 /* SVRootViewController.h */,
108-
8E7FDB641640EBA200EE63E5 /* SVRootViewController.m */,
109-
8E7FDB651640EBA200EE63E5 /* SVRootViewController.xib */,
110102
22E0D92A1545EE5B00BB6BB5 /* SVViewController.h */,
111103
22E0D92B1545EE5B00BB6BB5 /* SVViewController.m */,
112104
22E0D92D1545EE5B00BB6BB5 /* SVViewController.xib */,
@@ -197,7 +189,6 @@
197189
22E0D92F1545EE5B00BB6BB5 /* SVViewController.xib in Resources */,
198190
22E0D94B1545F63300BB6BB5 /* README.md in Resources */,
199191
22FDEC971639082E00DB53A8 /* [email protected] in Resources */,
200-
8E7FDB671640EBA200EE63E5 /* SVRootViewController.xib in Resources */,
201192
2214365616B48FD70057C96E /* SVPullToRefresh.podspec in Resources */,
202193
);
203194
runOnlyForDeploymentPostprocessing = 0;
@@ -214,7 +205,6 @@
214205
22E0D92C1545EE5B00BB6BB5 /* SVViewController.m in Sources */,
215206
22E0D93D1545EE7600BB6BB5 /* UIScrollView+SVPullToRefresh.m in Sources */,
216207
22FDEC9D16390CC800DB53A8 /* UIScrollView+SVInfiniteScrolling.m in Sources */,
217-
8E7FDB661640EBA200EE63E5 /* SVRootViewController.m in Sources */,
218208
);
219209
runOnlyForDeploymentPostprocessing = 0;
220210
};

Demo/SVPullToRefreshDemo/SVAppDelegate.m

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,46 +8,17 @@
88

99
#import "SVAppDelegate.h"
1010

11-
#import "SVRootViewController.h"
11+
#import "SVViewController.h"
1212

1313
@implementation SVAppDelegate
1414

1515
@synthesize window = _window;
1616

17-
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
18-
{
17+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
1918
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
20-
// Override point for customization after application launch.
21-
self.window.rootViewController = [[UINavigationController alloc] initWithRootViewController:[[SVRootViewController alloc] initWithNibName:@"SVRootViewController" bundle:nil]];
19+
self.window.rootViewController = [[SVViewController alloc] initWithNibName:@"SVViewController" bundle:nil];
2220
[self.window makeKeyAndVisible];
2321
return YES;
2422
}
2523

26-
- (void)applicationWillResignActive:(UIApplication *)application
27-
{
28-
// 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.
29-
// 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.
30-
}
31-
32-
- (void)applicationDidEnterBackground:(UIApplication *)application
33-
{
34-
// 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.
35-
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
36-
}
37-
38-
- (void)applicationWillEnterForeground:(UIApplication *)application
39-
{
40-
// 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.
41-
}
42-
43-
- (void)applicationDidBecomeActive:(UIApplication *)application
44-
{
45-
// 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.
46-
}
47-
48-
- (void)applicationWillTerminate:(UIApplication *)application
49-
{
50-
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
51-
}
52-
5324
@end

Demo/SVPullToRefreshDemo/SVRootViewController.h

Lines changed: 0 additions & 15 deletions
This file was deleted.

Demo/SVPullToRefreshDemo/SVRootViewController.m

Lines changed: 0 additions & 43 deletions
This file was deleted.

Demo/SVPullToRefreshDemo/SVRootViewController.xib

Lines changed: 0 additions & 179 deletions
This file was deleted.

0 commit comments

Comments
 (0)