Skip to main content

iPhone Development w/ xCode 3.2.4



I just bought the book: Sams Teach Yourself iPhone Application Development in 24 Hours.





In the book it uses xCode 3.2.4, so I went ahead and tried xCode 4.3 (the current version), but I didn't understand what to do...





I then found this page... https://developer.apple.com/downloads/index.action





I downloaded the version of xCode used in the book (just so I could see the same thing the book shows).





But, I'm getting two errors each having something to do with the Interface Builder...







"This version of Interface Builder does not support documents of type "Interface Builder Cocoa Touch Document (XIB 3.x)" targeting "iPhone/iPod touch"."







And it comes up twice for two different documents in my xCode project.





How can i get it to work? In the book the code I put in works just fine.





Also my Mac Version is: 10.7.3


Comments

  1. Do not waste time learning anything about Xcode 3.x. That would be like learning how to build catapults and siege engines in preparation for a career in the military.

    Apple completely rewrote Xcode with version 4.0, and every single thing about the user interface is totally and completely different. If you invest time learning 3.x, you will be totally lost and confused when you move up to 4.x (version 4.3. was just released, and there is yet a new version on the horizon.)

    I was totally lost and confused for about 2 weeks when I made the move from Xcode 3.x to 4.x, and I do this for a living and have been using Xcode for over 6 years now.

    Unfortunately, the iOS development books are behind the curve when it comes to versions of Xcode.

    Do yourself a favor and set the Xcode 3 book aside and find an Xcode 4 book (an ebook might be a better choice, since they can be updated.)

    ReplyDelete
  2. From what I just read, the xib files you have are not compatible with the newest version of Xcode.

    You may learn loads by fixing this.

    Don't delete the two files yet...

    Will the xib documents still display in IB?

    Try this:

    Rename the two xib files to some other name.

    *) With the old file open in IB, click View, Utilities, Show File Inspector.

    Click File's Owner, Rename

    1) In toolbar click File, New, File

    2) Choose User Interface, Empty, Next, Next

    3) Type the name of the corresponding .h file, be case sensitive. Click Create.

    4) Click File's Owner

    5) With the new file open in IB, click View, Utilities, Show Identity Inspector.

    6) For the class name, Use the class name in which you are attempting to fix.

    7) Drag a New View object to to the canvas, right click the new view, and set a Reference to the file owner's view variable by dragging to File Owner.

    At this point, you could attempt to copy all the objects out of the old xib and paste to the new one. Make sure you check all referencing outlets and target action stuff.

    8) Delete the old files in Xcode by right clicking and choose Delete, References Only.

    Let me know if this works or not.

    ReplyDelete

Post a Comment

Popular posts from this blog

[韓日関係] 首相含む大幅な内閣改造の可能性…早ければ来月10日ごろ=韓国

div not scrolling properly with slimScroll plugin

I am using the slimScroll plugin for jQuery by Piotr Rochala Which is a great plugin for nice scrollbars on most browsers but I am stuck because I am using it for a chat box and whenever the user appends new text to the boxit does scroll using the .scrollTop() method however the plugin's scrollbar doesnt scroll with it and when the user wants to look though the chat history it will start scrolling from near the top. I have made a quick demo of my situation http://jsfiddle.net/DY9CT/2/ Does anyone know how to solve this problem?

Why does this javascript based printing cause Safari to refresh the page?

The page I am working on has a javascript function executed to print parts of the page. For some reason, printing in Safari, causes the window to somehow update. I say somehow, because it does not really refresh as in reload the page, but rather it starts the "rendering" of the page from start, i.e. scroll to top, flash animations start from 0, and so forth. The effect is reproduced by this fiddle: http://jsfiddle.net/fYmnB/ Clicking the print button and finishing or cancelling a print in Safari causes the screen to "go white" for a sec, which in my real website manifests itself as something "like" a reload. While running print button with, let's say, Firefox, just opens and closes the print dialogue without affecting the fiddle page in any way. Is there something with my way of calling the browsers print method that causes this, or how can it be explained - and preferably, avoided? P.S.: On my real site the same occurs with Chrome. In the ex