Permalink
Browse files

Setting up AFNetworkActivityIndicatorManager in app delegates for exa…

…mples
  • Loading branch information...
1 parent 57dc217 commit 68e855c1123bd6d7942748b331dbd4e1ba72314c @mattt mattt committed Sep 9, 2012
Showing with 4 additions and 0 deletions.
  1. +2 −0 Examples/Basic Example/AppDelegate.m
  2. +2 −0 Examples/Twitter Client/AppDelegate.m
View
2 Examples/Basic Example/AppDelegate.m
@@ -35,6 +35,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
NSURLCache *URLCache = [[NSURLCache alloc] initWithMemoryCapacity:8 * 1024 * 1024 diskCapacity:20 * 1024 * 1024 diskPath:nil];
[NSURLCache setSharedURLCache:URLCache];
+ [[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES];
+
ArtistsListViewController *viewController = [[ArtistsListViewController alloc] initWithStyle:UITableViewStylePlain];
self.navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];
View
2 Examples/Twitter Client/AppDelegate.m
@@ -35,6 +35,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
NSURLCache *URLCache = [[NSURLCache alloc] initWithMemoryCapacity:8 * 1024 * 1024 diskCapacity:20 * 1024 * 1024 diskPath:nil];
[NSURLCache setSharedURLCache:URLCache];
+ [[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES];
+
PublicTimelineViewController *viewController = [[PublicTimelineViewController alloc] initWithStyle:UITableViewStylePlain];
self.navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];
self.navigationController.navigationBar.tintColor = [UIColor darkGrayColor];

0 comments on commit 68e855c

Please sign in to comment.