Permalink
Browse files

Minor restructuring of project file and app delegate in example

  • Loading branch information...
1 parent df14011 commit f523744cf055f63b3229edd6d967a447922173e9 @mattt mattt committed Sep 24, 2012
View
4 Example/AFNetworking Mac Example.xcodeproj/project.pbxproj
@@ -112,6 +112,8 @@
children = (
F8129C311591073C009BFE23 /* AFTwitterAPIClient.h */,
F8129C251591073C009BFE23 /* AFTwitterAPIClient.m */,
+ F8129C7615910C40009BFE23 /* AppDelegate.h */,
+ F8129C7515910C40009BFE23 /* AppDelegate.m */,
F8129C291591073C009BFE23 /* Models */,
F8129C061591061B009BFE23 /* Supporting Files */,
);
@@ -122,8 +124,6 @@
F8129C061591061B009BFE23 /* Supporting Files */ = {
isa = PBXGroup;
children = (
- F8129C7615910C40009BFE23 /* AppDelegate.h */,
- F8129C7515910C40009BFE23 /* AppDelegate.m */,
F8129C6E15910B15009BFE23 /* main.m */,
F8129C7015910B3E009BFE23 /* MainMenu.xib */,
);
View
4 Example/AFNetworking iOS Example.xcodeproj/project.pbxproj
@@ -172,6 +172,8 @@
F8E4696A1395739D00DB05C8 /* Classes */ = {
isa = PBXGroup;
children = (
+ F8129C7315910C37009BFE23 /* AppDelegate.h */,
+ F8129C7215910C37009BFE23 /* AppDelegate.m */,
F8DA09C91396AB690057D0CC /* Models */,
F8DA09CC1396AB690057D0CC /* Views */,
F8DA09C61396AB690057D0CC /* Controllers */,
@@ -186,8 +188,6 @@
children = (
F8DA09E31396AC040057D0CC /* main.m */,
F8129C3815910830009BFE23 /* Prefix.pch */,
- F8129C7315910C37009BFE23 /* AppDelegate.h */,
- F8129C7215910C37009BFE23 /* AppDelegate.m */,
F8E4696C1395739D00DB05C8 /* iOS-Info.plist */,
);
name = "Supporting Files";
View
26 Example/AppDelegate.m
@@ -37,19 +37,19 @@ - (BOOL)application:(UIApplication *)application
{
NSURLCache *URLCache = [[NSURLCache alloc] initWithMemoryCapacity:4 * 1024 * 1024 diskCapacity:20 * 1024 * 1024 diskPath:nil];
[NSURLCache setSharedURLCache:URLCache];
-
- [[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES];
-
- UITableViewController *viewController = [[PublicTimelineViewController alloc] initWithStyle:UITableViewStylePlain];
- self.navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];
- self.navigationController.navigationBar.tintColor = [UIColor darkGrayColor];
-
- self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
- self.window.backgroundColor = [UIColor whiteColor];
- self.window.rootViewController = self.navigationController;
- [self.window makeKeyAndVisible];
-
- return YES;
+
+ [[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES];
+
+ UITableViewController *viewController = [[PublicTimelineViewController alloc] initWithStyle:UITableViewStylePlain];
+ self.navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];
+ self.navigationController.navigationBar.tintColor = [UIColor darkGrayColor];
+
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
+ self.window.backgroundColor = [UIColor whiteColor];
+ self.window.rootViewController = self.navigationController;
+ [self.window makeKeyAndVisible];
+
+ return YES;
}
@end

0 comments on commit f523744

Please sign in to comment.