Functionally complete new example.

This commit is contained in:
Jeremy Ellison
2011-01-11 13:57:28 -05:00
parent 378aaac12b
commit a4e7e60467
17 changed files with 79 additions and 41 deletions

View File

@@ -71,7 +71,12 @@
for(DBPost* post in model.objects) {
NSString* url = [NSString stringWithFormat:@"db://posts/%@", post.postID];
[postItems addObject:[TTTableLongTextItem itemWithText:post.body URL:url]];
NSString* imageURL = [NSString stringWithFormat:@"%@%@", [RKObjectManager sharedManager].client.baseURL,
post.attachmentPath];
TTTableImageItem* item = [TTTableImageItem itemWithText:post.body
imageURL:imageURL
URL:url];
[postItems addObject:item];
}
self.dataSource = [TTSectionedDataSource dataSourceWithArrays:@"Topic",