[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

Similar Messages

  • 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.

  • Xcode and Interface Builder

    Hello,
    I want to make a thing in Interface Builder so that when I click on the About "My Application" menu in the Menu Bar at the top a new window comes up.
    What I did, was made a new window (HUB) then, deselected Visible at Launch. I did all the linking stuff with applescript and when I tested (Apple - R) it showed up! Any idea why and how to fix this problem?
    Thanks!
    P.S. My app is an AppleScript app
    And also, if you can, how do you "export" your finished apps from Xcode?

    bubblejelly wrote:
    I want to make a thing in Interface Builder so that when I click on the About "My Application" menu in the Menu Bar at the top a new window comes up.
    Umm, OK. But you should get an "About" window by default without having to do anything. Are you saying you want another window too, or a different window than the default one?
    What I did, was made a new window (HUB) then, deselected Visible at Launch. I did all the linking stuff with applescript and when I tested (Apple - R) it showed up! Any idea why and how to fix this problem?
    HUB? Not sure what that means.
    Did you do the Apple-R in Xcode or in Interface Builder? "Test Interface" (or Apple-R) in Interface Builder is not the same as "Build and Run" (Apple-R) in Xcode. In IB if your "not visible" window is open when you do the Apple-R then it will also be open when the interface test is in progress. None of your AppleScript code gets executed when you're testing in IB.
    If you were doing the Apple-R in Xcode then I don't know. Post some of your AppleScript code.
    Steve

  • 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.

  • Interface builder and xcode

    ok, im a complete newbie to xcode and interface builder,
    so, wen i try to make a connection for a new outlet and click 'files owner', all it shows is 'delegate', instead of files tat i hav in my resource folder, or the files im supposed to hav, anyone could help me on this? it would be appreciated greatly, thx

    Hello joshup7 & welcome to the forums...
    Generally speaking, you first need to properly specify items in your templates/code (*.m & *.h files) in Xcode and then they will show up when making connections in IB. Who/what/where/why depends on your specific code, naming conventions, etc.
    See this page from Apple:
    http://developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptua l/IB_UserGuide/Introduction/Introduction.html
    And this sample/tutorial that should cover the basics:
    http://www.iphonesdkarticles.com/2008/07/first-iphone-application.html
    ...see the section on 'Connecting Instance Variables'.

  • Interface Builder Assertion Failure at initialization/startup

    Interface Builder appears to be unusable...
    I get four (4) alert messages at the start of running Interface Builder:
    ====
    Interface Builder encountered an internal logic error. Choose "Continue" to continue running Interface Builder in an inconsistent state. Choose "Crash" to halt Interface Builder and file a bug with Crash Reporter. Choosing "Crash" will result in the loss of all unsaved data.
    ====
    Selecting (Show Details) I get:
    ====
    Assertion 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.
    IBUIViewImageRequester failed to rasterize a UILabel, UIButton, UITextField, and UISegmentedControl.
    Exception name: NSInternalInconsistencyException
    Exception reason: [NOTE: this exception originated in the server.]
    Invalid parameter not satisfying: font != nil
    Exception backtrace:
    0. CoreFoundation 0x30279dfb [NSException initWithName:reason:userInfo:]
    1. libobjc.A.dylib 0x92750e3b objcexceptionthrow
    2. CoreFoundation 0x3028e5fb CFReadStreamGetBuffer
    3. Foundation 0x305b0594 [NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
    4. UIKit 0x309fe074 [UILabel setFont:]
    5. UIKit 0x309fec08 [UILabel _commonInit]
    6. UIKit 0x309fd13c [UILabel initWithFrame:]
    7. Interface Builder Cocoa Touch Tool 0x00008655 [UIView initWithMarshalledValues:orderedKeys:marshallerClassNames:andMarshallerInstanti ationContexts:globalMarshallingContext:]
    8. Interface Builder Cocoa Touch Tool 0x0000b307 [IBCocoaTouchToolObjectPackage dealloc]
    9. Interface Builder Cocoa Touch Tool 0x0000b80f [IBCocoaTouchToolObjectPackage initWithData:]
    10. Interface Builder Cocoa Touch Tool 0x0000a5a1 [IBCocoaTouchToolObjectPackage dealloc]
    11. Interface Builder Cocoa Touch Tool 0x00002c74 [IBCocoaTouchTool produceImageForRequest:]
    12. Interface Builder Cocoa Touch Tool 0x00002445 [IBCocoaTouchTool produceImagesForRequests:]
    13. CoreFoundation 0x3024a10d CF_forwarding_prep0
    14. CoreFoundation 0x30249ff8 [NSInvocation invoke]
    15. CoreFoundation 0x3026eaf8 [NSInvocation invokeWithTarget:]
    16. CoreFoundation 0x3026e094 [NSDate initWithTimeIntervalSinceNow:]
    17. CoreFoundation 0x3024a0a2 CF_forwarding_prep0
    18. CoreFoundation 0x3024a10d CF_forwarding_prep0
    19. CoreFoundation 0x30249ff8 [NSInvocation invoke]
    20. Foundation 0x3053e15d [NSConnection dispatchInvocation:]
    21. Foundation 0x3053c307 [NSConnection handleRequest:sequence:]
    22. Foundation 0x3053ba13 [NSConnection handlePortCoder:]
    23. Foundation 0x3053b5be [NSConcretePortCoder dispatch]
    24. Foundation 0x3053ae33 [NSDOStreamData bytes]
    25. CoreFoundation 0x30246e79 CFRunLoopRemoveObserver
    26. CoreFoundation 0x30245560 CFRunLoopRunSpecific
    27. CoreFoundation 0x30244628 CFRunLoopRunInMode
    28. Foundation 0x30535525 [NSRunLoop runMode:beforeDate:]
    29. Interface Builder Cocoa Touch Tool 0x000020af [IBCocoaTouchTool startServingForPortName:]
    30. Interface Builder Cocoa Touch Tool 0x00002e77 [IBCocoaTouchTool produceImageForRequest:]
    Exception info:{
    Backtrace:
    0. Interface Builder 0x00004d29 [IBApplication handleAssertion:inFile:onLine:]
    1. IBCocoaTouchPlugin 0x16622659 [IBAssertionShim reportMarshallingFailure:]
    2. Foundation 0x9002b9bc [NSRunLoop getCFRunLoop]
    3. CoreFoundation 0x93ac9595 CFRunLoopRunSpecific
    4. CoreFoundation 0x93ac9c78 CFRunLoopRunInMode
    5. HIToolbox 0x91f3428c BlockUntilNextEventMatchingListInMode
    6. HIToolbox 0x91f33fde BlockUntilNextEventMatchingListInMode
    7. HIToolbox 0x91f33f19 BlockUntilNextEventMatchingListInMode
    8. AppKit 0x906e4d0d _DPSNextEvent
    9. AppKit 0x906e45c0 [NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    10. Interface Builder 0x0000276b [IBApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    11. AppKit 0x9092192b [NSApplication _realDoModalLoop:peek:]
    12. AppKit 0x9091c069 [NSApplication runModalForWindow:]
    13. InterfaceBuilderKit 0x00382511 [IBDetailedAlert runModal]
    14. Interface Builder 0x00004dd6 [IBApplication handleAssertion:inFile:onLine:]
    15. IBCocoaTouchPlugin 0x16622659 [IBAssertionShim reportMarshallingFailure:]
    16. Foundation 0x9002b9bc [NSRunLoop getCFRunLoop]
    17. CoreFoundation 0x93ac9595 CFRunLoopRunSpecific
    18. CoreFoundation 0x93ac9c78 CFRunLoopRunInMode
    19. HIToolbox 0x91f3428c BlockUntilNextEventMatchingListInMode
    20. HIToolbox 0x91f33fde BlockUntilNextEventMatchingListInMode
    21. HIToolbox 0x91f33f19 BlockUntilNextEventMatchingListInMode
    22. AppKit 0x906e4d0d _DPSNextEvent
    23. AppKit 0x906e45c0 [NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    24. Interface Builder 0x0000276b [IBApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    25. AppKit 0x9092192b [NSApplication _realDoModalLoop:peek:]
    26. AppKit 0x9091c069 [NSApplication runModalForWindow:]
    27. InterfaceBuilderKit 0x00382511 [IBDetailedAlert runModal]
    28. Interface Builder 0x00004dd6 [IBApplication handleAssertion:inFile:onLine:]
    29. IBCocoaTouchPlugin 0x16622659 [IBAssertionShim reportMarshallingFailure:]
    30. Foundation 0x9002b9bc [NSRunLoop getCFRunLoop]
    31. CoreFoundation 0x93ac9595 CFRunLoopRunSpecific
    32. CoreFoundation 0x93ac9c78 CFRunLoopRunInMode
    33. HIToolbox 0x91f3428c BlockUntilNextEventMatchingListInMode
    34. HIToolbox 0x91f33fde BlockUntilNextEventMatchingListInMode
    35. HIToolbox 0x91f33f19 BlockUntilNextEventMatchingListInMode
    36. AppKit 0x906e4d0d _DPSNextEvent
    37. AppKit 0x906e45c0 [NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    38. Interface Builder 0x0000276b [IBApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    39. AppKit 0x9092192b [NSApplication _realDoModalLoop:peek:]
    40. AppKit 0x9091c069 [NSApplication runModalForWindow:]
    41. InterfaceBuilderKit 0x00382511 [IBDetailedAlert runModal]
    42. Interface Builder 0x00004dd6 [IBApplication handleAssertion:inFile:onLine:]
    43. IBCocoaTouchPlugin 0x16622659 [IBAssertionShim reportMarshallingFailure:]
    44. Foundation 0x9002b9bc [NSRunLoop getCFRunLoop]
    45. CoreFoundation 0x93ac9595 CFRunLoopRunSpecific
    46. CoreFoundation 0x93ac9c78 CFRunLoopRunInMode
    47. HIToolbox 0x91f3428c BlockUntilNextEventMatchingListInMode
    48. HIToolbox 0x91f33fde BlockUntilNextEventMatchingListInMode
    49. HIToolbox 0x91f33f19 BlockUntilNextEventMatchingListInMode
    50. AppKit 0x906e4d0d _DPSNextEvent
    51. AppKit 0x906e45c0 [NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    52. Interface Builder 0x0000276b [IBApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    53. AppKit 0x906dd5fb [NSApplication run]
    54. AppKit 0x906aa834 NSApplicationMain
    55. Interface Builder 0x00004eca [IBApplication changeInspectorMode:]
    ====
    If I press (Continue) and then try to create any fields which need text, such as a label or button, I get the exact same alert window, and nothing "appears to work" as far as getting past this.
    Some background...
    I have no problems like this on my PPC development platform, just on my Intel-based system.
    Configuration:
    Intel hardware, 1.6 Ghz, 2GB, Mac OS/X 10.5.7
    Originally I installed the the devtools from: xcode3122621developerdvd.dmg
    and the 2.0 or 2.1 iPhone SDK, but never used Interface Builder (long story)
    When the final SDK for 3.0 came out, I installed that from:
    iphonesdk_3.0_leopard_9m2736final.dmg
    A few days ago, I said, OK, enough reading, I'm ready to start on my application, and fired up Xcode, created a new project and double-clicked on the .xib file to build my interface.
    That's when I first saw this problem... and now I'm stuck.
    What I've done since...
    #1) Deleted prefs for Interface Builder (ibtool), and XCode
    retried... same error
    #2) wiped /developer clean and resinsatlled from iphonesdk_3.0_leopard_9m2736final.dmg
    retried... same error
    retried #1, retried, same error
    #3) ran /Volumes/Olórin/Developer/Library/uninstall-devtools --mode=all
    rebooted
    checked international to make sure US/English was selected
    repaired disk permissions
    rebooted
    verified, no prefs files in ~/Library/Preferences or /Library/Preferences
    retried... same error
    HELP!!!

    ! ! ! - O M G - ! ! !
    {quote:title=reststop wrote:}
    #3) ran /Volumes/Olórin/Developer/Library/uninstall-devtools --mode=all
    {quote}
    I was about to post a reply which included the entire crash log for details... and saw this line:
    7/21/09 12:44:16 AM [0x0-0x28028].com.apple.InterfaceBuilder3[269] Couldn't read font cache (file://localhost/Volumes/Olo%C3%83%C3%85rin/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0. sdk/System/Library/.lilid/.lili).
    The file is there, so why can't it read it... uh oh, not exactly
    ... I typed /Olórin/ not /Olo%C3%83%C3%83rin/
    Apparently somewhere internal to Interface Builder, when it translates characters, it does it TWICE,
    so instead of 'ó' (that's 'option-e o', we have 'o%C3%83%C3%83' which may have worked if it had
    only been '%C3%83', without the extra o, or the extra %C3%83.
    I am so glad I found this, but I'm furious at Apple for making me rebuild my development system 3 times!
    ...someone really needs to do better QA on a product used by so many users.
    I changed the name of my disk from Olórin to Olorin and Interface Builder works fine!
    The PROBLEM all along was the name of my development disk ! ! !
    Someone at Apple, please NOTE!
    Someone please tell me how to report this, and maybe get Apple to hire me even if just for better QA!
    -Carl

  • UITableViewCell and the Interface Builder

    I'm trying to use the Interface Builder to create a UITableViewCell but am having problems.
    I can create the UITableViewClass in my .xib file, connect the reference outlet and reuseIdentifier using the inspector. The problems occurs when I try and render the cell with this method...
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    Since the interface builder creates the TableViewCell automatically, I should be able to call...
    UITableViewCell *cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"priceCell"] autorelease];
    ..from inside the tableView:cellForRowAtIndexPath method and get that cell instance. But none of changes (Color, accessory view, etc...) I made to the table view come through.
    Has anyone got UITableViewCells created in the interface builder to work?

    Just an update to inform people of some of my findings.
    I had originally, before gkstuart's post, had added a UITableViewCell instance as a child of my view in IB. I then tried to use the cell via an IBOutlet in the UITableView in my view. This is when I was getting a completely blank screen when running my application. I then adopted gkstuart's idea and created a cell factory class, but without thinking, I used the same cell instance on each call to my 'newCell' method. Once I updated the 'newCell' method to load the nib file on each call to 'newCell' everything seems to work fine. As a note, the nib file loaded by 'newCell' is a simple nib file containing only my custom cell definition. It does not contain any views. Gkstuart's method of loading custom cells is unfortunate, because you can't seem to use the reusable cell theory when working with cells defined in IB. This is obviously something that needs work on Apple's side.
    As a test, I removed my custom cell definition from my original view nib. I then added a new top level instance of UITableViewCell, by dragging the UITableViewCell item to the window with the File Owner icon. After updating the custom cell definition with the appropriate class and outlets, I tried my original method again. I no longer get a completely blank screen, but it still doesn't work right. I now get a single cell in my table view, which happens to be the last cell in the list. When looking at it with the debugger, dequeueReusableCell never returns my cell instance so I am reusing and returning the same cell for each call to 'cellAtIndexPath'. I tried to manually call the cells 'prepareForReuse' method but this didn't seem to have any affect.
    So at this point, I am going to continue with the cell factory methodology until Apple either fixes the current problem or informs people on the proper way to use IB with custom UITableViewCell's.
    As a side note, I am going to start blogging about my experiences with the iPhone SDK over at iphonesdktrialsandtribulations.blogger.com.

  • 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.

  • File's Owner does not show methods in Interface Builder 3.2.6 but the class is set correctly and the nib on the lower left is green

    Hi, I'm trying to make my first IPhone app. After having problems with interface builder the first time I coppied the code directly from a tutorial in case I made any mistakes. I saved the program, and re-opened the .xib file. Right clicking  File's Owner does not show a list of methods. I've been looking around for solutions for this but have not gotten anything to work. I tried deleting the default .xib and creating a new one through file-> new file. This did not help. I did notice that File's owner was showing up as a light blue cube apposed to a yellow one now and found that a bit odd but otherwise nothing changed. I opened the library menu and selected helloWorldiPhoneViewController so it would show up in the view port. I set the class field of File's Owner to hellowWorldiPhoneViewController. File's Owner still does not show methods when right clicked or when a line is dragged over a button. I read somewhere that the color of nib on the lower left of the viewport may indicate a problem, but it is green not indicating any issue. Every solution I found for someone else seems nto to work for me and I don't know how to continue.
    here is the .h file just in case:
    //  HelloWorldViewController.h
    //  HelloWorld
    //  Created by Paul Peelen on 2011-03-14.
    //  Copyright 2011 9697271014. All rights reserved.
    #import <UIKit/UIKit.h>
    @interface HelloWorldViewController : UIViewController {
            UILabel *textLabel;
    @property (nonatomic, retain) IBOutlet UILabel *textLabel;
    - (IBAction)changeTheTextOfTheLabel;
    @end
    I'm trying to connect changeTheTextOfTheLabel to a button and textLabel to a label

    You need a parameter for an interface builder method. The type should be id and the name is typically "sender". It would look like this:
    - (IBAction)changeTheTextOfTheLabel: (id) sender;
    Be careful about those tutorials. Many are ancient and do not correspond to current Xcode behaviour.

  • 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.

  • 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.

  • Using interface builder to create a table view and add a cell

    So I am using interface builder to make a table view. Should be easy. I drag a table view controller to my view, then it seems I should be able to drag a table view cell to the table view but it won't let me drop it down. If I do it in the documents window it just replaces the table view with a cell. Seems like this shouldn't be hard, but it's one of those things that should take 2 seconds but I have been messing with it for hours. It seems like most of the examples I have looked at in the same code don't use iB so I haven't found a good reference. If somebody can point me in the write direction let me know.

    I struggled a bit too. Here's what I did on my recently completed app. I used IB to create the basic view and add the table. That's it. Then ensure your UIViewController based class implements the UITableViewDelegate and UITableViewDataSource protocols. Your cells will come from those methods, not anything you do in IB.
    If you're creating a set of screens that just have tables that allow you to navigate up and down through the data then IB isn't worth using at all.
    Just have your views extends UITableViewController and follow some of the supplied table based example apps.
    I rewrote my first app 3 times as I slowly figured all of this out.
    Hope that helps.

  • I am new to xCode and SDK Disks. My Interface Builder will not work and 'quit's unexpecteldy'. What can I do? I really want to create an applicaiton. Thanks

    Hi, I am a new user to xCode and just recently downloaded a SDK Disk image and also an older version of xCode from the Apple Developer site. I opened the 'Interface Builder' for the first time and it worked. Next, when I tried to open it again (with and without the xCode 'Mainmenu.xib' attachment file from xCode) it kept showing the message "it quit unexpectedly".
    I need to create an application for a project I am working on. If anyone who can resolve my problem of why the Interface Builder is not working, that will be great.
    If you need additional details (like which versions etc.) please ask, for I am desperate to find an adequate solution to this problem.
    Thanks.

    If you need additional details (like which versions etc.) please ask, for I am desperate to find an adequate solution to this problem.
    Without intending any disrespect, if you had suspected these would be questions and if you're in a hurry for an answer, then why did you exclude the information?  And yes, knowing the Mac OS X version (preferably Mac OS X 10.5.8 or 10.6.7) , as well as the Xcode version might shed some light on this.  Might.  And I'll presume there's a specific reason you downloaded what I will assume is an Xcode3 version.
    Was this an existing Xcode project, or did you start with a new project here?  If it's an existing project, it could well have a corruption or an incompatibility.
    Initially, I'd probably start with a new project, and load in newly-copied source files.  On the off chance the project is corrupted.
    Failing that, I'd deinstall Xcode using the documented procedures, and would then reload it.  If there was an old version of Xcode around on the system, sometimes wonky stuff can happen with an installation.
    And FWIW, the Apple Developer Forums and the Apple mailing lists tend to see far more developer-related traffic than do these particular forums.  (There's an Xcode users' mailing list around which sees regular traffic, too.)

Maybe you are looking for