Basically i map my controllers to accept the address class to be passed into the listingpage controller. Which is done here:
[map from:@"tt://listingPage/(initWithResult:)" toViewController:[ListingPageController class]];
[map from:[Address class] name:@"result" toURL:@"tt://listingPage/(initWithResult:)"];
This url is being used in my table item which is being populated in the datasource:
for (Address *result in [(id<SearchResultsModel>)self.model results]) {
NSString* url = [result URLValueWithName:@"result"];
TTTableImageItem* tii = [TTTableMessageItem itemWithTitle:[result addressText]
caption:[result addressText]
text:[result subText]
imageURL:[result image]
URL:url];
[self.items addObject:tii];
}
My app crashes, I am not sure why, seems to be getting an invalidate view. any help would be much appreciated.