I should have tried this sooner

So i’m working on this app.  Well i’m reading some tutorials on using an sqlite db to store the data.  The sql stuff is easy considering I set up my own little db scructure for my facebook app.  So i have this code in to get what I need done.  grabing a row from the db and displaying it in a cell.  So i compile it and run it in the simulator and it crashes with an uncaught exception error.  I spend literally 30 minutes trying to figure it out.  I’m setting breakpoints and stepping through all the code to find that it is crashing on

[window addSubview:[navigationController view]];

So i’m like WTF?  Anyway come to realize im compiling it for OS 2.2.1 simulator and when i tried it on my phone thats what I had it set to.  I set it to 3.0 simulator and it works.  GG me.  I guess it uses some new stuff.  oh well it works now :P

So I understand most of the code that i’m using but I can’t actually sit down and write it all from scratch.  I don’t think that that’s a bad thing considering I just started playing with Objective-C like 3 days ago.

0 notes / Permalink