canard_42 Posted April 14, 2008 Share Posted April 14, 2008 I've been playing with Interface Builder, after reading the "Your First iPhone application" document at the Apple iPhone Dev Center. Everything works fine with simple controls, but I can't manage to add an UITableView to my view: I can't "simulate interface", nor build and run my application to check the interface. Using IB, I set the connection from my controller's UITableView to the interface's UITableView. Still using IB, I set my controller as the delegate and source of the interface's UITableView (the controller implements the table delegate and data source protocols). Also just to safe, after loading the Nib in the controller's loadView method, I set the controller as the table view delegate and data source a second time. And I get the following error: Line Location FrontView.xib:0: Command /Developer/usr/bin/ibtool failed with exit code 1 Line Location FrontView.xib:0: The delegate must be set for <UITableView: 0x354d10>, but is currently nil. Line Location FrontView.xib:0: Description: ibtool failed with exception: [NOTE: this exception originated in the server.] Line Location FrontView.xib:0: Internal Error: Line Location FrontView.xib:0: /* com.apple.ibtool.errors */ Is it a bug? Did someone actually manage to create a view with a UITableView using Interface Builder? Thanks for your help. Link to comment https://www.insanelymac.com/forum/topic/99149-problem-with-interface-builder-and-uitableview/ Share on other sites More sharing options...
orangesauce Posted April 14, 2008 Share Posted April 14, 2008 Yep, I'm having the same problem. More incriminating evidence: Create a new project, select the "Cocoa Touch List" project. There's now an xib created, but it doesn't have a list in the xib, just a window waiting to receive a list! Link to comment https://www.insanelymac.com/forum/topic/99149-problem-with-interface-builder-and-uitableview/#findComment-708423 Share on other sites More sharing options...
Thomas Joy Posted May 1, 2008 Share Posted May 1, 2008 Im also facing the same issues.. does any one got a solution?? Link to comment https://www.insanelymac.com/forum/topic/99149-problem-with-interface-builder-and-uitableview/#findComment-731196 Share on other sites More sharing options...
nevyn Posted May 10, 2008 Share Posted May 10, 2008 It seems the latest beta (b5) must be installed in /Developer/, not in any other location. If you've installed the SDK in a separate location (I installed in /Developer (iPhone)/ for example), you'll get the above problem and others (or at least that's my theory; just reinstalling into my custom location didn't help, installing on top of /Developer helped.) Link to comment https://www.insanelymac.com/forum/topic/99149-problem-with-interface-builder-and-uitableview/#findComment-741810 Share on other sites More sharing options...
Recommended Posts