diff --git a/Example/AFNetworking Mac Example.xcodeproj/project.pbxproj b/Example/AFNetworking Mac Example.xcodeproj/project.pbxproj index 899632e..b1ee68d 100644 --- a/Example/AFNetworking Mac Example.xcodeproj/project.pbxproj +++ b/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 */, ); diff --git a/Example/AFNetworking iOS Example.xcodeproj/project.pbxproj b/Example/AFNetworking iOS Example.xcodeproj/project.pbxproj index f193529..6623ce0 100644 --- a/Example/AFNetworking iOS Example.xcodeproj/project.pbxproj +++ b/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"; diff --git a/Example/AppDelegate.m b/Example/AppDelegate.m index c5b56a1..6e8de56 100644 --- a/Example/AppDelegate.m +++ b/Example/AppDelegate.m @@ -37,19 +37,19 @@ didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 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