Skip to content

Commit

Permalink
Pull artwork down in the Gowalla example
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbrethorst committed Sep 5, 2011
1 parent 663a686 commit 40f6de6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions GowallaExample/GowallaExample.xcodeproj/project.pbxproj
Expand Up @@ -32,6 +32,7 @@
9305C05A14147AF90052A06F /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 9305C05914147AF90052A06F /* libz.dylib */; };
9305C06014147DB20052A06F /* SpotsTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9305C05F14147DB20052A06F /* SpotsTableViewController.m */; };
9305C0631414804A0052A06F /* CheckinsTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9305C0621414804A0052A06F /* CheckinsTableViewController.m */; };
93ADBB7C14155F6000553E08 /* empty_50.png in Resources */ = {isa = PBXBuildFile; fileRef = 93ADBB7B14155F6000553E08 /* empty_50.png */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -81,6 +82,7 @@
9305C05F14147DB20052A06F /* SpotsTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SpotsTableViewController.m; sourceTree = "<group>"; };
9305C0611414804A0052A06F /* CheckinsTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CheckinsTableViewController.h; sourceTree = "<group>"; };
9305C0621414804A0052A06F /* CheckinsTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CheckinsTableViewController.m; sourceTree = "<group>"; };
93ADBB7B14155F6000553E08 /* empty_50.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = empty_50.png; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -131,6 +133,7 @@
9305BFD5141478F80052A06F /* GowallaExample */ = {
isa = PBXGroup;
children = (
93ADBB7A14155F6000553E08 /* images */,
9305C05D14147D910052A06F /* View Controllers */,
9305C05B14147D720052A06F /* Libraries */,
9305BFDE141478F80052A06F /* GowallaExampleAppDelegate.h */,
Expand Down Expand Up @@ -232,6 +235,14 @@
path = "View Controllers";
sourceTree = "<group>";
};
93ADBB7A14155F6000553E08 /* images */ = {
isa = PBXGroup;
children = (
93ADBB7B14155F6000553E08 /* empty_50.png */,
);
path = images;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -284,6 +295,7 @@
files = (
9305BFDA141478F80052A06F /* InfoPlist.strings in Resources */,
9305BFE3141478F80052A06F /* MainWindow.xib in Resources */,
93ADBB7C14155F6000553E08 /* empty_50.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -422,6 +434,7 @@
9305BFE8141478F80052A06F /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
Expand Up @@ -7,6 +7,7 @@
//

#import "SpotsTableViewController.h"
#import "UIImageView+AFNetworking.h"

@implementation SpotsTableViewController
@synthesize tableData;
Expand Down Expand Up @@ -34,6 +35,8 @@ - (void)viewDidLoad
{
[super viewDidLoad];

self.tableView.rowHeight = 60;

self.tableData = [[[NSMutableArray alloc] init] autorelease];
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithFloat:47.623318], @"lat", [NSNumber numberWithFloat:-122.312937], @"lng", [NSNumber numberWithInt:50], @"radius", nil];

Expand Down Expand Up @@ -72,6 +75,8 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N

NSDictionary *spot = [self.tableData objectAtIndex:indexPath.row];
cell.textLabel.text = [spot objectForKey:@"name"];
[cell.imageView setImageWithURL:[NSURL URLWithString:[spot objectForKey:@"_image_url_50"]]
placeholderImage:[UIImage imageNamed:@"empty_50.png"]];

return cell;
}
Expand Down
Binary file added GowallaExample/GowallaExample/images/empty_50.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 40f6de6

Please sign in to comment.