iphone - UITableViewController loading inside a UIViewController inside a UIViewController issue -


I do not really know what I'm doing is the right way to do it. At the moment it seems that unless it is at a certain point with the message of EXC_BAD_ACCESS, we have to work.

I suggest that I am saying with the best and most relevant details: I have a calendar viewer that is loading from a .xib file (CalendarViewController.xib) which inherits the UIViewController is. The class which I created and I started with another nib file based on a class which is inherited from the UIViewController is called a UIView contentView:

  - (zero) viewDidLoad { [Super viewDidLoad]; CalendarView = [[View all calendar] initWithNibName: @ "Calendar view" bundle: zero]; [ContentView addSubview: calendarViewView]; }   

(CalendarView is class UIViewController and viewDidLoad inherited from CalendarViewController.

That is a UITableViewController associated with CalendarView.xib. This table is connected to a view controller CalendarTableController which I also have to generate a .xib file for it.

Everything is just being made (apparently) but it is crashing somewhere very unexpected. CalendarTableController is also a DateLoaderDelegate on which an information loads from xml implements an arm Re URL

  - (zero) connectionDidFinishLoading:. (NSURLConnection *) {Data is loading all finished, so we use a copy of // load data for us // connections. Self.lastLoadedMatchXMLData = [self.matchXMLData Copy]; // Make sure that when accessing data is already a load in progress that will not allow us to worry about // // _delegate object actually Is xmlDidFinishLoading // method, and if this happens, call to notify it T representative gives If ([_delegate answer // data has finished loading Tilkarit: @ selector (xmlDidFinish loading)]) {[_delegate xmlDidFinish loading]; }   

}

The application is getting at this point without any problem. _delegate contains the correct object (a CalendarTableController that implements DateLoaderDelegate), but when it comes to the line:

  if ([_delegate respondsToSelector: @selector (xmlDinFinishLoading)])   

Accidents with this EXC_BAD_ACCESS, I don, if I look at the debugger, then in fact I know the reason why none of my classes are crashing because none of them are showing in the execution stack . URLConnectionClient starts generating it, but I do not really know why

any thoughts?

Check that you have defined properties for all your subviews and that you do It needs to be maintained that poor access means that you are trying to call the respondent on any object released on an object < / Html>

Comments