Adding a tableview into a detailsview in Xcode4 causes crash
I'm working on an UISplitView component for Xcode learning purposes
My application has a list of brands in the popover. Once an item is selected, the brand's picture, and some details of the brand will be loaded into outlets in the detailview. All was working perfectly until I decided to add a tableview to the detailview of the splitview. 开发者_JS百科The project now crashes on startup!
The project file can be found here
I must have misslinked something. Your expert help is much appreciated. The project is done in Xcode 4.
I was able to run your project without any hiccups. I am not sure whether it did what you intended but it didn't crash. So I think you should try Product
> Clean
to clean the project and then build it again to see if it works.
As a side note, you are leaking in this statement - self.brandProducts =[[NSMutableArray alloc] init];
. You can make that self.brandProducts = [NSMutableArray array];
. Additionally, you should make your string properties a copy
property rather than retain
.
精彩评论