Sunday, May 24, 2009
More lessons
I was testing out a table view navigation project and it kept crashing for no apparent reason. Finally in desperation I did a clean on the project and voila, it ran fine.... xCode, no love for you tonight!
Another lesson learned...
Command-R in xCode is build and run, whereas command-R in interface builder is simulate interface! This caused me confusion because I would build and run in xCode and it would go to a black screen, yet when I did the same from interface builder, it showed my nib file, but I did not realize it was a simulation. doh!
Little Gotchas and findings so far (iPhone)
A couple notes on my findings so far with iPhone development. First off, having been away from C based languages, I forgot that system headers show up in <>'s (#Import ) and that custom classes show up in ""'s (#import "Myclass.h"). Had an issue with that for a short time. Another thing I found was that if you forget a semi-colon in xCode, it is not very good at pinpointing this so it can cause weird messages... so always do a rough check to see if you are missing them (especially if you normally code in a language that does not use them). Something that also caught me, in xCode, when you create outlets and actions that you are going to use in interface builder, you must save in xCode before popping into interface builder so that they show up. I also had a little bit of issues with creating multi-view applications, so I will post on that later when I have more to say on handling that.
Monday, May 18, 2009
Starting an application!
Having chosen an application to work on and worked through some tutorials, I have finally begun to code an app. I have also been reading: Beginning iPhone Development, which is worth the purchase. It is interesting to see how much time it takes to write a functional class in a new language versus one you are comfortable with. I would say so far it is probably a 10:1 ratio for doing iPhone code versus .net for me. Anyhow I have learned a lot thus far! One thing to note, do not turn off the save before running prompt. I was thinking about doing this and then low and behold xCode totally disappeared and crashed when I ran one build. Weird... I thought the commercials suggested that only PC's crashed?
Subscribe to:
Posts (Atom)