Manual coding vs. Interface Builder - iPhone

I have most of an app done with IB and I've managed to get things to work mostly, but I did have a lot of problems with UIDatePicker and could only get it to work properly when creating it manually.
I have some other strange bugs, like the Delete button sometimes animating accross the top of the window rather than on the row it's supposed to and based on my experience with the date picker, I don't know if that's a problem with my code or with using IB.
Also, most of the sample code seems to create things manually.
So, am I better off using Interface Builder for my iPhone apps, or creating everything manually in code? At this point I'm leaning towards doing everything manually.

A lot of the sample code creates elements programmatically because Interface Builder didn't exist early in the beta. Others (like UICatalog) do it to make the view heirarchy more obvious.
I usually recommend using Interface Builder wherever possible. Remember, there's nothing stopping you from altering IB-created views in your viewDidLoad method; just add outlets for the views you need to customize and connect them as needed. In my experience, it's usually easier to move parts of an application away from IB when you need to do so than it is to move them to IB to make them easier to maintain; working with pure code encourages certain design patterns (like not-really-needed view subclasses and custom constructors to avoid repetitive initialization code) that don't really play well with IB.

Similar Messages

  • IPad landscape mode in Interface Builder

    I've scanned these forums and abroad and can find no way to develop in landscape for iPad in Interface Builder. iPhone has a little rotate arrow in the upper left corner but no such arrow exists for iPad. If this is not available for iPad can someone explain why? My particular app will run exclusively in widescreen or landscape mode.

    Thank you. Yes it's there. I suppose this is a noobie question, but only noobie to iPad dev so that takes some sting out. I appreciate your help.
    Kris

  • Trying to create first iPhone app, use Interface Builder or Xcode first?

    I'm trying to create my first iPhone App, do I start with Interface Builder or Xcode first? And how do I link the two together?

    It's not really that simple -- you'll be working with both. Interface Builder is used to design the GUI (graphical user interface, which consists of the windows and buttons and text fields and so forth, the parts of the application that your user interacts with). Xcode, on the other hand, is used to write the code that tells that GUI what it's supposed to do, and how to do it. So, to answer your question as best I can -- generally, I would imagine you would want to start by creating the basic form of your GUI in Interface Builder and then start coding where appropriate in Xcode, then you'll move back and forth between the two (Xcode and Interface Builder) as needed.
    If you're new to programming and want to start with iPhone apps, I recommend picking up a book on the topic (Apress publishing has a book called "Beginning iPhone 3 Development: Exploring the iPhone SDK" that is a good one, and don't forget to take advantage of Apple's iOS Dev Center, which has lots of good documentation on most any topic that will be helpful in supplementing the information in the book you buy -- click [here|http://developer.apple.com/iphone/index.action] to go there).
    Keep in mind, however, that trying to learn to program iPhone apps will be difficult (to say the least) if you don't already know Objective-C, and the Apress book I recommended above will not be easy to follow without understanding Objective-C first. Objective-C an object-oriented extension of C, and it is the programming language that is used to develop iOS apps (apps for the iPhone, iPod touch, or iPad). I would definitely recommend learning Objective-C on the Mac before jumping in to iPhone development in specific. Apress has another book called "Learn Objective-C on the Mac" that I would recommend for this.
    Furthermore, since Objective-C is an extension of C, you won't have an easy time learning it without a prior understanding of the C programming language. Again, Apress has a book for this, called "Learn C on the Mac."
    Put simply, learning to program for the iPhone is not something that comes overnight -- it's a step-by-step process that takes patience, and you have to be willing to go through these steps if you want to learn to program properly for the iPhone.
    Step 1 -- learn the C programming language
    Step 2 -- learn the Objective-C programming language
    Step 3 -- apply your knowledge to developing for iOS (iPhone's operating system) with the Cocoa Touch framework
    Anyways, that's just my advice -- I definitely recommend taking the time to do it right and not jumping straight into the deep end, but in the end only you know what works best for you. Also, like I said, I definitely think investing in a book on the subject is worth the time and money, so let me know if you want any other recommendations for books beyond the ones listed above.
    Hope this was helpful to you, and best of luck with your journey toward programming for iOS.

  • Not able to spy objects in ie9 using coded UI Test Builder Spy, giving exception -Interface not registered(Exception from HRESULT:0X....

    Not able to spy objects in ie9 using coded UI Test Builder Spy, giving exception - "Interface not registered(Exception from HRESULT:0X...."
    I am not able to capture any objects of my web application using coded ui recorder. Even though it is a simple html page, coded ui is showing a message  -"Interface not registered(Exception from HRESULT:0X...."
    Please give me solution , why this is hapening. I am having problem with object identification. Even I am not able to identify any object in google.com.
    swapnanil sengupta

    TechnologyName is displaying as "MSAA" . But my application is a Webapplication.If I try to spy the google .com's search field then also TechnologyName is displaying as "MSAA". Is it any configuration issue of vsts codedui.
    swapnanil sengupta

  • Looking for simple sample of iphone apps without using Interface Builder

    I successfully went through the 'iphone app tutorial' and used Interface Builder, but now want to try creating apps without it.
    The UI Catalog sample is too complex, but didn't see anything that just had a view and a button or label.
    Ideally I want code that doesn't require any IB usage, but I can't tell if that is possible yet...
    Anyone have a link to an easy sample?
    Or has anyone created a test app themselves and wouldn't mind posting?
    I took a stab at creating one and posted it on the "101" forum, but it would be hard for somebody to try and figure out what I was attempting
    Thx for any links/___sbsstatic___/migration-images/migration-img-not-avail.png
    ps
    I really need a good book, especially "cookbook" style

    hey dear
    I have one solution of your problem
    just go to in iphone developer search for FAQ
    In faq their is one section how to use prohramming in this you can see
    the how to ceate label,button etc.
    after that simply add the view or remove theview.

  • Interface Builder encountered an error communicating with the iPhone Simulator

    Hi,
    I downloaded the latest iOS SDK and tried simple helloworld program. Once I try to build it in the xcode, it shows the following 2 errors. I tried to re-install the SDK several times, and it doesn't work. 
    CompileXIB MainWindow.xib
    cd /Users/qingzhao/Desktop/ch1/HelloWorld
    setenv IBCMINIMUM_COMPATIBILITYVERSION 3.2
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/qingzhao/Desktop/ch1/HelloWorld/build/Debug-iphonesimulator/HelloWorld.a pp/MainWindow.nib /Users/qingzhao/Desktop/ch1/HelloWorld/MainWindow.xib --sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2 .sdk
    2010-09-22 13:07:18.333 ibtool[1155:607] Assertion Failure: [toolTask isRunning]
    2010-09-22 13:07:18.337 ibtool[1155:607] File: /SourceCache/IBCocoaTouchPlugin/IBCocoaTouchPlugin-123/IBPlugin/Utilities/IBObj ectMarshalling.m
    2010-09-22 13:07:18.337 ibtool[1155:607] Line: 140
    2010-09-22 13:07:18.519 ibtool[1155:607] Backtrace:
    0 IBCocoaTouchPlugin 0x00000001039b7dcc IBAttachToCocoaTouchTool + 1669
    1 IBCocoaTouchPlugin 0x00000001039b5e9f IBAskClassInTargetRuntimeForValueForKeyPathUsingRe sultMarshallerWithContext + 147
    2 IBCocoaTouchPlugin 0x0000000103a2d963 IBReleaseIsWildcat + 1791
    3 IBCocoaTouchPlugin 0x0000000103a2d538 IBReleaseIsWildcat + 724
    4 IBCocoaTouchPlugin 0x0000000103a2d57b IBReleaseIsWildcat + 791
    5 IBCocoaTouchPlugin 0x00000001039b29f9 IBReplaceClassNamePrefixWith + 1588
    6 IBCocoaTouchPlugin 0x00000001039b682e IBBuildMarshalledDescriptionOfDocument + 2093
    7 IBCocoaTouchPlugin 0x00000001039b0515 IBBestTargetRuntimeForConversionFromTargetRuntime + 18393
    8 IBCocoaTouchPlugin 0x00000001039abcad IBUISegmentConfiguration + 2784
    9 ibtool 0x000000010000829f
    10 ibtool 0x0000000100006e0c
    11 ibtool 0x0000000100003161
    12 ibtool 0x0000000100001dbc
    2010-09-22 13:07:18.519 ibtool[1155:607] Message: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1158) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    2010-09-22 13:07:18.520 ibtool[1155:607] Assertion Failure: NO
    2010-09-22 13:07:18.520 ibtool[1155:607] File: /SourceCache/IBCocoaTouchPlugin/IBCocoaTouchPlugin-123/IBPlugin/Utilities/IBObj ectMarshalling.m
    2010-09-22 13:07:18.520 ibtool[1155:607] Line: 351
    2010-09-22 13:07:18.521 ibtool[1155:607] Backtrace:
    0 IBCocoaTouchPlugin 0x00000001039b5f62 IBAskClassInTargetRuntimeForValueForKeyPathUsingRe sultMarshallerWithContext + 342
    1 IBCocoaTouchPlugin 0x0000000103a2d963 IBReleaseIsWildcat + 1791
    2 IBCocoaTouchPlugin 0x0000000103a2d538 IBReleaseIsWildcat + 724
    3 IBCocoaTouchPlugin 0x0000000103a2d57b IBReleaseIsWildcat + 791
    4 IBCocoaTouchPlugin 0x00000001039b29f9 IBReplaceClassNamePrefixWith + 1588
    5 IBCocoaTouchPlugin 0x00000001039b682e IBBuildMarshalledDescriptionOfDocument + 2093
    6 IBCocoaTouchPlugin 0x00000001039b0515 IBBestTargetRuntimeForConversionFromTargetRuntime + 18393
    7 IBCocoaTouchPlugin 0x00000001039abcad IBUISegmentConfiguration + 2784
    8 ibtool 0x000000010000829f
    9 ibtool 0x0000000100006e0c
    10 ibtool 0x0000000100003161
    11 ibtool 0x0000000100001dbc
    2010-09-22 13:07:18.521 ibtool[1155:607] Message: Interface Builder encountered an error communicating with the iPhone Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
    Failed to determine the value for systemColors of UIColor.
    Exception name: IBAssertionFailure
    Exception reason: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1158) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    What can I do  ? Thank you very much!!!

    I found this on stack overflow.com and thought it would apply to this article discussion for some users even though I don't understand how to revert the version (through git?)
    I think this is a compatibility issue. I think the .xib has moved to Xcode 4 (as shown by the line setenv IBC_MINIMUM_COMPATIBILITY_VERSION 4.2) which Xcode 3.2's version of ibtooldoes not understand.
    I think you need to revert to a version of the .xib prior to the update to Xcode 4.""

  • Interface Builder encountered an error communicating with the iPhone Simula

    Hi,
    I downloaded the latest iOS SDK and tried simple helloworld program. Once I try to build it in the xcode, it shows the following 2 errors. I tried to re-install the SDK several times, and it doesn't work.
    CompileXIB MainWindow.xib
    cd /Users/qingzhao/Desktop/ch1/HelloWorld
    setenv IBCMINIMUM_COMPATIBILITYVERSION 3.2
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/qingzhao/Desktop/ch1/HelloWorld/build/Debug-iphonesimulator/HelloWorld.a pp/MainWindow.nib /Users/qingzhao/Desktop/ch1/HelloWorld/MainWindow.xib --sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2 .sdk
    2010-09-22 13:07:18.333 ibtool[1155:607] Assertion Failure: [toolTask isRunning]
    2010-09-22 13:07:18.337 ibtool[1155:607] File: /SourceCache/IBCocoaTouchPlugin/IBCocoaTouchPlugin-123/IBPlugin/Utilities/IBObj ectMarshalling.m
    2010-09-22 13:07:18.337 ibtool[1155:607] Line: 140
    2010-09-22 13:07:18.519 ibtool[1155:607] Backtrace:
    0 IBCocoaTouchPlugin 0x00000001039b7dcc IBAttachToCocoaTouchTool + 1669
    1 IBCocoaTouchPlugin 0x00000001039b5e9f IBAskClassInTargetRuntimeForValueForKeyPathUsingRe sultMarshallerWithContext + 147
    2 IBCocoaTouchPlugin 0x0000000103a2d963 IBReleaseIsWildcat + 1791
    3 IBCocoaTouchPlugin 0x0000000103a2d538 IBReleaseIsWildcat + 724
    4 IBCocoaTouchPlugin 0x0000000103a2d57b IBReleaseIsWildcat + 791
    5 IBCocoaTouchPlugin 0x00000001039b29f9 IBReplaceClassNamePrefixWith + 1588
    6 IBCocoaTouchPlugin 0x00000001039b682e IBBuildMarshalledDescriptionOfDocument + 2093
    7 IBCocoaTouchPlugin 0x00000001039b0515 IBBestTargetRuntimeForConversionFromTargetRuntime + 18393
    8 IBCocoaTouchPlugin 0x00000001039abcad IBUISegmentConfiguration + 2784
    9 ibtool 0x000000010000829f
    10 ibtool 0x0000000100006e0c
    11 ibtool 0x0000000100003161
    12 ibtool 0x0000000100001dbc
    2010-09-22 13:07:18.519 ibtool[1155:607] Message: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1158) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    2010-09-22 13:07:18.520 ibtool[1155:607] Assertion Failure: NO
    2010-09-22 13:07:18.520 ibtool[1155:607] File: /SourceCache/IBCocoaTouchPlugin/IBCocoaTouchPlugin-123/IBPlugin/Utilities/IBObj ectMarshalling.m
    2010-09-22 13:07:18.520 ibtool[1155:607] Line: 351
    2010-09-22 13:07:18.521 ibtool[1155:607] Backtrace:
    0 IBCocoaTouchPlugin 0x00000001039b5f62 IBAskClassInTargetRuntimeForValueForKeyPathUsingRe sultMarshallerWithContext + 342
    1 IBCocoaTouchPlugin 0x0000000103a2d963 IBReleaseIsWildcat + 1791
    2 IBCocoaTouchPlugin 0x0000000103a2d538 IBReleaseIsWildcat + 724
    3 IBCocoaTouchPlugin 0x0000000103a2d57b IBReleaseIsWildcat + 791
    4 IBCocoaTouchPlugin 0x00000001039b29f9 IBReplaceClassNamePrefixWith + 1588
    5 IBCocoaTouchPlugin 0x00000001039b682e IBBuildMarshalledDescriptionOfDocument + 2093
    6 IBCocoaTouchPlugin 0x00000001039b0515 IBBestTargetRuntimeForConversionFromTargetRuntime + 18393
    7 IBCocoaTouchPlugin 0x00000001039abcad IBUISegmentConfiguration + 2784
    8 ibtool 0x000000010000829f
    9 ibtool 0x0000000100006e0c
    10 ibtool 0x0000000100003161
    11 ibtool 0x0000000100001dbc
    2010-09-22 13:07:18.521 ibtool[1155:607] Message: Interface Builder encountered an error communicating with the iPhone Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
    Failed to determine the value for systemColors of UIColor.
    Exception name: IBAssertionFailure
    Exception reason: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1158) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    Exception backtrace:
    (null)
    Exception infonull)
    /* com.apple.ibtool.errors */
    /Users/qingzhao/Desktop/ch1/HelloWorld/MainWindow.xib: error: ibtool failed with exception: Interface Builder encountered an error communicating with the iPhone Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
    Failed to determine the value for systemColors of UIColor.
    Exception name: IBAssertionFailure
    Exception reason: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1158) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    Exception backtrace:
    (null)
    Exception infonull)

    I'm using 10.6.4 and having the same issue. Reinstalled the newest SDK a few times (Xcode 3.2.4 with 4.1 of the iOS SDK). I can't build anything to run on the iPhone Simulator, but building regular Mac apps works fine. Here's what it tells me when I try to build and run:
    CompileXIB MainWindow.xib
    cd /Users/myusername/Development/iTennis
    setenv IBCMINIMUM_COMPATIBILITYVERSION 3.2
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/myusername/Development/iTennis/build/Debug-iphonesimulator/iTennis.app/M ainWindow.nib /Users/myusername/Development/iTennis/MainWindow.xib --sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2 .sdk
    2010-10-26 17:07:21.838 ibtool[1428:607] Assertion Failure: [toolTask isRunning]
    2010-10-26 17:07:21.934 ibtool[1428:607] File: /SourceCache/IBCocoaTouchPlugin/IBCocoaTouchPlugin-123/IBPlugin/Utilities/IBObj ectMarshalling.m
    2010-10-26 17:07:21.934 ibtool[1428:607] Line: 140
    2010-10-26 17:07:22.016 ibtool[1428:607] Backtrace:
    0 IBCocoaTouchPlugin 0x000000010383ddcc IBAttachToCocoaTouchTool + 1669
    1 IBCocoaTouchPlugin 0x000000010383be9f IBAskClassInTargetRuntimeForValueForKeyPathUsingResultMarshallerWithContext + 147
    2 IBCocoaTouchPlugin 0x00000001038b3963 IBReleaseIsWildcat + 1791
    3 IBCocoaTouchPlugin 0x00000001038b3538 IBReleaseIsWildcat + 724
    4 IBCocoaTouchPlugin 0x00000001038b357b IBReleaseIsWildcat + 791
    5 IBCocoaTouchPlugin 0x00000001038389f9 IBReplaceClassNamePrefixWith + 1588
    6 IBCocoaTouchPlugin 0x000000010383c82e IBBuildMarshalledDescriptionOfDocument + 2093
    7 IBCocoaTouchPlugin 0x0000000103836515 IBBestTargetRuntimeForConversionFromTargetRuntime + 18393
    8 IBCocoaTouchPlugin 0x0000000103831cad IBUISegmentConfiguration + 2784
    9 ibtool 0x000000010000829f
    10 ibtool 0x0000000100006e0c
    11 ibtool 0x0000000100003161
    12 ibtool 0x0000000100001dbc
    2010-10-26 17:07:22.017 ibtool[1428:607] Message: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1431) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    2010-10-26 17:07:22.018 ibtool[1428:607] Assertion Failure: NO
    2010-10-26 17:07:22.018 ibtool[1428:607] File: /SourceCache/IBCocoaTouchPlugin/IBCocoaTouchPlugin-123/IBPlugin/Utilities/IBObj ectMarshalling.m
    2010-10-26 17:07:22.018 ibtool[1428:607] Line: 351
    2010-10-26 17:07:22.019 ibtool[1428:607] Backtrace:
    0 IBCocoaTouchPlugin 0x000000010383bf62 IBAskClassInTargetRuntimeForValueForKeyPathUsingResultMarshallerWithContext + 342
    1 IBCocoaTouchPlugin 0x00000001038b3963 IBReleaseIsWildcat + 1791
    2 IBCocoaTouchPlugin 0x00000001038b3538 IBReleaseIsWildcat + 724
    3 IBCocoaTouchPlugin 0x00000001038b357b IBReleaseIsWildcat + 791
    4 IBCocoaTouchPlugin 0x00000001038389f9 IBReplaceClassNamePrefixWith + 1588
    5 IBCocoaTouchPlugin 0x000000010383c82e IBBuildMarshalledDescriptionOfDocument + 2093
    6 IBCocoaTouchPlugin 0x0000000103836515 IBBestTargetRuntimeForConversionFromTargetRuntime + 18393
    7 IBCocoaTouchPlugin 0x0000000103831cad IBUISegmentConfiguration + 2784
    8 ibtool 0x000000010000829f
    9 ibtool 0x0000000100006e0c
    10 ibtool 0x0000000100003161
    11 ibtool 0x0000000100001dbc
    2010-10-26 17:07:22.020 ibtool[1428:607] Message: Interface Builder encountered an error communicating with the iPhone Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
    Failed to determine the value for systemColors of UIColor.
    Exception name: IBAssertionFailure
    Exception reason: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1431) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    Exception backtrace:
    (null)
    Exception info:(null)
    /* com.apple.ibtool.errors */
    /Users/myusername/Development/iTennis/MainWindow.xib: error: ibtool failed with exception: Interface Builder encountered an error communicating with the iPhone Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
    Failed to determine the value for systemColors of UIColor.
    Exception name: IBAssertionFailure
    Exception reason: Interface Builder encountered an error communicating with the iPhone Simulator. "Interface Builder Cocoa Touch Tool" (1431) failed to launch and exited with status 11. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
    Exception backtrace:
    (null)
    Exception info:(null)

  • IPhone Interface Builder Tutorials???

    New to Objective-C, X-code, etc. and now that Interface Builder came out for the iPhone SDK, I can't seem to find any information at all on how to use it (it does not seem to integrate with X-code as I have found in non-iPhone development work with X-code and IB.
    Could someone please suggest or direct me to websites, videos, or books that would help a complete novice use this tool? Thanks.

    Thanks for the reference.
    I have to say the process using IB is very intuitive - NOT.
    I've been reading an older O'Reilly Cocoa book and it makes at least some sense and seems to be integrated with X-code for Mac development without tweaking the default code. I see a steep learning curve ahead as heavy use of secret right-clicks and unintuitive dragging are usually to be frowned upon except for folks who have already climbed that mountain (if you even know why you're doing it .
    I hope more is coming from Apple.

  • Install iphone simulator and interface builder

    I have purchase new mac book pro . I got xcode in media but how can i install iphone simulator and interface builder..
    some body can give me link for that.....
    thanks in advance..

    Sorry, false alarm...10.5.3 failed to install properly prior to updating to beta 6 and as a result the SDK itself didn't install.

  • [iphone] sub ViewController in UITableView and Interface Builder

    Hello,
    I created a UITableView-based application and now I would like to display a simple view after selecting a cell (drilldown feature).
    I create a xib file in Interface Builder by following the guide "Configuring the Views for Additional Navigation Levels" in http://tinyurl.com/6cdh2k and I instantiate my controller using the method describe here http://tinyurl.com/5ft7ug
    in my method didSelectRowAtIndexPath :
    ViewStoryController *detailStoryController = [[ViewStoryController alloc] initWithNibName:@"StoryDetails" bundle:nil];
    detailStoryController.story = story;
    [[self navigationController] pushViewController:detailStoryController animated:YES];
    But my screen is blank but for the navigation bar. I think it must something about init/load methods etc ... I missed something ?
    Matthieu

    Hello,
    I created a UITableView-based application and now I would like to display a simple view after selecting a cell (drilldown feature).
    I create a xib file in Interface Builder by following the guide "Configuring the Views for Additional Navigation Levels" in http://tinyurl.com/6cdh2k and I instantiate my controller using the method describe here http://tinyurl.com/5ft7ug
    in my method didSelectRowAtIndexPath :
    ViewStoryController *detailStoryController = [[ViewStoryController alloc] initWithNibName:@"StoryDetails" bundle:nil];
    detailStoryController.story = story;
    [[self navigationController] pushViewController:detailStoryController animated:YES];
    But my screen is blank but for the navigation bar. I think it must something about init/load methods etc ... I missed something ?
    Matthieu

  • Interface Builder not starting (iPhone SDK beta 6)

    Hi,
    I have upgraded my OS to 10.5.3, uninstalled SDK beta 5 and installed SDK beta 6. Since then I cannot start Interface Builder (the icon bounces 3 or 4 times and the application hangs). I tried to reinstall it again and nothing changed.
    Is that a known problem with beta 6? I have a friend who does not experience this problem. Any workaround?
    Thanks and best,
    Rodrigo

    How can it be possible? you invest some money believeng you will start something great and develop allied with the biggest intrepeneur of the world,and... boom. what you see.... isnt really what u get. Why this beta 6/7 Interface Builder crashs when u scroll around too see some v2.0 aspects of the i-phone? just some secret aspects or a little glitch on the final build ? lets see if we can have a taste for it... i was really anxious...

  • [iPhone Beta 6] Interface Builder no longer supports the iPhone!

    Just upgraded to beta 6 and tried to open an XIB file, only to receive an error message that "Interface Builder cannot open files of this type." A closer look at IB shows that no longer are Touch apps listed as a template type when creating a new file. Anyone else having this issue?

    Sorry, false alarm...10.5.3 failed to install properly prior to updating to beta 6 and as a result the SDK itself didn't install.

  • [iPhone Beta 6] Problem with Interface Builder

    I cannot open xib files created using beta 5 after updating to beta 6. The IB just hangs. Also, I tried to create new xib file, but when I browser the library view to see the component, the IB also hangs. Is anyone having the same problem?
    ps: I uninstalled xcode and reinstalled it. No success.

    Am also having the same issue, even when launching IB3 without loading a file.
    I get a crash loading IBCocoaTouchTool....
    Process: IBCocoaTouchTool [27606]
    Path: /Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Interface Builder/Plug-ins/IBCocoaTouchPlugin.ibplugin/Contents/Resources/IBCocoaTouchToo l
    Identifier: IBCocoaTouchTool
    Version: ??? (???)
    Code Type: X86 (Native)
    Parent Process: Interface Builder [27605]
    Date/Time: 2008-05-30 21:16:08.342 +0930
    OS Version: Mac OS X 10.5.3 (9D34)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGSEGV)
    Exception Codes: KERNINVALIDADDRESS at 0x00000000c012530b
    Crashed Thread: 0
    Thread 0 Crashed:
    0 libobjc.A.dylib 0x96d9a6e8 objc_msgSend + 24
    1 UIKit 0x30be1423 -[UITable setOffset:] + 429
    2 UIKit 0x30bcd92e -[UIScrollerScrollAnimation setProgress:] + 166
    3 UIKit 0x30aca9c7 -[UIAnimator(Static) _advance:] + 289
    4 GraphicsServices 0x31699412 HeartbeatTimerCallback + 35
    5 com.apple.CoreFoundation 0x916fcb3e CFRunLoopRunSpecific + 4494
    6 com.apple.CoreFoundation 0x916fccf8 CFRunLoopRunInMode + 88
    7 com.apple.Foundation 0x911ba4a5 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
    8 IBCocoaTouchTool 0x0000284e 0x1000 + 6222
    9 IBCocoaTouchTool 0x00002f69 0x1000 + 8041
    10 IBCocoaTouchTool 0x000022b6 0x1000 + 4790

  • Interface Builder refuses to see "@2x" image files

    I'm making some apps with support for all three major iOS platforms: iPhone&Co, iPhone4 and iPad. This support means, naturally, having larger-resolution images for the latter two platforms. Currently I'm making the apps universal, so the same app will run in all of them.
    Since most of the double-resolution images of the iPhone4 version of the app can be used as-is in the iPad version (only things like background images have to be made separately for all three types of platform due to differing screen resolutions; the rest can be done with simply laying out the elements appropriately in the iPad as compared to the iPhone4, using the same element images for both), it would be a huge waste of space to make separate images for the iPhone4 and the iPad, when these images would be completely identical. Thus it only makes sense to reuse the same "@2x" images of the iPhone4 on the iPad version of the app.
    This worked nicely for a while. However, at some point quite suddenly (I don't really know what happened), Interface Builder started to completely refuse to see any image files with a "@2x" in their name. It won't show them on the drop-down menu where you select an image (eg. for an UIImageView or UIButton), and if you write it manually, it will refuse to show it (only showing the question mark image symbolizing a missing image file). The image will show ok when running the app, but IB simply refuses to acknowledge the existence of such images. If I rename the image such that I remove the "@2x", then IB will accept it, but not if it has those characters.
    As said, IB did see the "@2x" images at some point, but for some reason now it doesn't. (This is a bit of a mystery because I don't remember this happening after any kind of SDK upgrade or anything.)
    This tells me that this is either 1) a bug in IB, or 2) intentional behavior, and the "@2x" images should not be "abused" in this way to create an iPad version of the app properly.
    If hypothesis 2 is correct, then what is the proper way of using the same images in both the iPhone4 and iPad versions of the app? Duplicating the image files would be an enormous waste of space (the apps are quite graphics-heavy).
    One "kludge" that comes to mind would be to create soft links for the images so that the iPad versions of the image files would just be soft links to the @2x iPhone4 images. However, I don't know if the bundling mechanism of the iPhone SDK supports soft links, or if it will simply make copies of the images (in which case each such image will end up being stored twice in the bundle).

    WarpRulez wrote:
    If I rename the image such that I remove the "@2x", then IB will accept it, but not if it has those characters.
    I guess I don't understand why you want a solution when you've found one already.
    Just use ".2x" or "-2x" or whatever.
    Report the bug, use your workaround and move on.

  • Interface Builder refuses to see "@2x" image files - AGAIN in 5.0

    This was a problem in Xcode 4.0. Eventually, it was fixed.
    Now that Xcode 5.0 is out, it's back to the same problem. And, Xcode 5.0 asks you to convert your XIB files to the new format, so it can screw you up without you even knowing it!
    PROBLEM:
    The @2x images are NOT visible in interface builder. It cannot be selected from the list. It shows an unknown image (question mark) if you manually type it in...which renders layout design pointless if you need those @2x files.
    Many, many, many developers reuse the @2x images in the iPad xib files. Now, all of the images will either be shrunk or stretched from lower-res images...because it REMOVES the @2x extension for any images it finds in a xib file.
    SUGGESTIONS in the past:
    - Copy your @2x images to ~ipad images, because the framework will automatically use it.
    NO. I don't need to up the size of my app significantly with duplicate images.
    - Rename the @2x images to something else (e.g. -2x).
    NO. Because the framework will no longer auto load them for iPhone retina.
    - Just manually name them with the @2x and live with the broken image in IB.
    NO. Because most people actually care about the layout.
    - Create a separate iPad app.
    NO. Because customers shouldn't have to pay twice for the same app for 2 different devices.
    - Programmatically change the images to @2x if it's an iPad.
    UGH. This is what I've ended up doing, but how ridiculous is that?
    Anyone else found a way around this?

      NSString* path = [[NSBundle mainBundle] pathForResource:@"imageName" ofType:@"png"];
              NSData* data = path ? [NSData dataWithContentsOfFile:path] : nil;
              UIImage* img = data ? [UIImage imageWithData:data] : nil;
      if( img ) [button setImage:img forState:UIControlStateNormal];
    OR
      NSString* path = [[NSBundle mainBundle] pathForResource:@"imageName" ofType:@"png"];
      UIImage* img = [UIImage imageWithContentsOfFile:path];
      if( img ) [button setImage:img forState:UIControlStateNormal];
    Both should bypass auto-scaling.

Maybe you are looking for