How to use NSObject to URLs with three20 properly

Posted by Frank on Stack Overflow See other posts from Stack Overflow or by Frank
Published on 2010-04-21T15:51:14Z Indexed on 2010/04/21 15:53 UTC
Read the original article Hit count: 417

Filed under:
|
|

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 I am has been invoked here:

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.

© Stack Overflow or respective owner

Related posts about three20

Related posts about objective-c