Note that there are some explanatory texts on larger screens.

plurals
  1. PONSMutableArray not populating TableView
    text
    copied!<p>Hello I'm hoping to work through <a href="http://www.raywenderlich.com/21842/how-to-make-a-gesture-driven-to-do-list-app-part-13" rel="nofollow">this tutorial</a> to learn how to recreate one of my most favorite apps: Clear App by RealMac software.</p> <p>But I am literally stuck at the beginning. After the first section, before even styling the rows, the tableView is not being populated by the NSMutableArray made in the initWithNibName.</p> <p>All my code is EXACTLY the same but when I run it I am getting this error:</p> <pre><code>Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle &lt;/var/mobile/Applications/DD956F2E-26A7-4357-BCD7-DC0C42939861/Clear App Tutorial.app&gt; (loaded)' with name 'UIViewController'' </code></pre> <p>Is there anything that could be missing from the code that is a difference of versions from when the tutorial was made and with Xcode 5 now?</p> <p>Like do I need to "release" or "addToSubView" the _toDoListItems array in the viewDidLoad method?</p> <p>Sorry, I am very new to Objective-C and so far it is a big headache for me. :-/</p> <p>This is in my AppDelegate.m:</p> <pre><code> #import "AppDelegate.h" #import "ViewController.h" @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for customization after application launch. self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; self.window.rootViewController = self.viewController; [self.window makeKeyAndVisible]; return YES; } ....etc. and @end </code></pre> <p>And this is in my AppDelegate.h:</p> <pre><code>#import &lt;UIKit/UIKit.h&gt; @class ViewController; @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) ViewController *viewController; @end </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload