This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TradeSelectNewTableViewController.m | |
// WarZ Companion | |
// | |
// Created by Anthony on 1/3/13. | |
// Copyright (c) 2013 Anthony. All rights reserved. | |
// | |
#import "ItemDatabase.h" | |
#import "TradeSelectNewTableViewController.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ItemDatabase.h | |
// WarZ Companion | |
// | |
// Created by Anthony on 1/3/13. | |
// Copyright (c) 2013 Anthony. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TradeSelectNewTableViewController.m | |
// WarZ Companion | |
// | |
// Created by Anthony on 1/3/13. | |
// Copyright (c) 2013 Anthony. All rights reserved. | |
// | |
#import "ItemDatabase.h" | |
#import "TradeSelectNewTableViewController.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TradeSelectNewTableViewController.m | |
// WarZ Companion | |
// | |
// Created by Anthony on 1/3/13. | |
// Copyright (c) 2013 Anthony. All rights reserved. | |
// | |
#import "ItemDatabase.h" | |
#import "TradeSelectNewTableViewController.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ResourcesTableViewController.h" | |
@interface ResourcesTableViewController () | |
@end | |
@implementation ResourcesTableViewController | |
@synthesize resourceCategories; | |
- (id)initWithStyle:(UITableViewStyle)style |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ItemsTableViewController.h" | |
@interface ItemsTableViewController () | |
@end | |
@implementation ItemsTableViewController | |
@synthesize categoryType, image_id, dataJSON; | |
- (id)initWithStyle:(UITableViewStyle)style |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"first":[ | |
{ | |
"image_id":"vNZYZ08", | |
"hits":"5", | |
"first_view":"1356184026" | |
}, | |
{ | |
"image_id":"j1QZs34", | |
"hits":"6", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"image_id":"mmwVV74", | |
"hits":"2", | |
"first_view":"1356242044" | |
}, | |
{ | |
"image_id":"jSOxa38", | |
"hits":"5", | |
"first_view":"1356245094" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSURL *url = [NSURL URLWithString:[receiveItem objectForKey:@"image"]]; | |
NSData *imageData = [NSData dataWithContentsOfURL:url]; | |
UIImage *itemImage = [UIImage imageWithData:imageData]; | |
itemImageView = [[UIImageView alloc] initWithImage:itemImage]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) { |