From f5c3fa201921d7e31e19da53bb5f127d3f7dad47 Mon Sep 17 00:00:00 2001 From: Benyam Solomon Date: Mon, 23 Apr 2012 14:18:31 -0400 Subject: [PATCH] using BEST BUY json api --- .../UserInterfaceState.xcuserstate | Bin 24907 -> 28929 bytes thankxBuddyApp/ModevUXAppDelegate.h | 8 +----- thankxBuddyApp/ModevUXFirstViewController.m | 14 ++++++---- thankxBuddyApp/ModevUXSecondViewController.h | 2 ++ thankxBuddyApp/ModevUXSecondViewController.m | 24 +++++++++++------- 5 files changed, 27 insertions(+), 21 deletions(-) diff --git a/thankxBuddyApp.xcodeproj/project.xcworkspace/xcuserdata/bs5846.xcuserdatad/UserInterfaceState.xcuserstate b/thankxBuddyApp.xcodeproj/project.xcworkspace/xcuserdata/bs5846.xcuserdatad/UserInterfaceState.xcuserstate index 01b766e463ee9861d8d4059958ceb69b0cbf1c90..a82a214a92fb34853ea81e5a323efe5910d4e876 100644 GIT binary patch delta 13936 zcmc(FcU)7~`+x4alN}(50RjXP_9lxVGi=BL6c9uiQBj66+?so8)!JIMrna_D+;vv1 zd+%BI!oByNb=BWZB1S)LzyJQ=1xfDnKJW89@AI7JoO^N)Y)9Z#WC9nX-cj#=a0^0) zEmtZLgBK73KM(}MK{7}IsXz(RKsv|(nIH$`0yQWGC7=r^1!bTsXadck1@s34z(6nv z3WK=`a5Nf?L1WQ4G#*Vvlh9-|1x-UUQ59N% zmZD{7S5%MoKzpJMXkWA+`W-qJ{T>~Mjz=e;KcEv)Bl;sc3H=G3h0aFjpmWiA=wkGD zbS1h2-HGl(ccXjIz34u4KY9c`i5f1T7tx#OE%Y{eAAO9zL|>tQVJr;60ES{1W`j9k zAy@6EP$9 zBQ^e`1HQ!`Kn*yaBs_UBoV7_ptle1MDI8278OW z!`|aIxGipn+v9xP4R^;q@Blmz55j}-5IhtQ!(;I{JRa|eXW`j+4xWqG;B|Okycr*W z55b4yU*RM1G5A<~0&c{A#(%}9$Q$POf*bR*qK4^lw-k|I(}29lv<4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<|}4jdQniuk(=eC+9KeN$0Q5i_R;~Ypx)d!PVK-%hks<&^5|6#x=<`#Wmga zg=?;BzH5sc>7q0h>Nq1vTV_rf3g1Ul< z1=9*<6)Y)OR?`=O;8elcf^!8I3N9D?R&cG5C{!0VFLW19D4bq6 zr*LuM(!zCxTMBm+{#Zih_&SMPWsPB5_efQKKSN zk)|lQD79!_(aNILMeB+-6b}q84lj-i@z@ZP!dwYE(t5)my9f# zR5H0_TFH!3vQ$tiDwUKewa_- diff --git a/thankxBuddyApp/ModevUXAppDelegate.h b/thankxBuddyApp/ModevUXAppDelegate.h index a2a89f3..e3d1ba0 100644 --- a/thankxBuddyApp/ModevUXAppDelegate.h +++ b/thankxBuddyApp/ModevUXAppDelegate.h @@ -8,16 +8,10 @@ #import -@interface ModevUXAppDelegate : UIResponder { - UINavigationController *navigationController; - UITabBarController *tabBarController; - -} +@interface ModevUXAppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) UITabBarController *tabBarController; -@property (nonatomic, retain) IBOutlet UINavigationController *navigationController; - @end diff --git a/thankxBuddyApp/ModevUXFirstViewController.m b/thankxBuddyApp/ModevUXFirstViewController.m index ec0ec30..ef545a1 100644 --- a/thankxBuddyApp/ModevUXFirstViewController.m +++ b/thankxBuddyApp/ModevUXFirstViewController.m @@ -7,7 +7,7 @@ // -#define giftsListURL [NSURL URLWithString:@"http://10.24.110.253:5000/messages"] +#define giftsListURL [NSURL URLWithString:@"http://api.remix.bestbuy.com/v1/products(manufacturer=apple)?apiKey=gcbrumxjpnwp2tg3ebhss933&format=json&sort=name.asc"] #import "ModevUXFirstViewController.h" @@ -90,12 +90,13 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface - (void)fetchedData:(NSData *)responseData { //parse out the json data NSError* error; - goodiesArray = [NSJSONSerialization + NSDictionary *criteria = [NSJSONSerialization JSONObjectWithData:responseData //1 options:kNilOptions error:&error]; + goodiesArray = [criteria objectForKey:@"products"]; // NSLog(@"goodies=%@", goodiesArray); } @@ -130,12 +131,15 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N NSDictionary *items = [[NSDictionary alloc] init]; items = [goodiesArray objectAtIndex:[indexPath row]]; - NSLog(@"GOODIES=%@", goodiesArray); - title = [items objectForKey:@"to"]; + title = [items objectForKey:@"name"]; [cell.textLabel setText:title]; - // cell.imageView.image = [items objectForKey:@"img"]; + NSString *thumbnailImage = [items objectForKey:@"thumbnailImage"]; + + UIImage *tn = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:thumbnailImage]]]; + + cell.imageView.image = tn; cell.textLabel.font = font; diff --git a/thankxBuddyApp/ModevUXSecondViewController.h b/thankxBuddyApp/ModevUXSecondViewController.h index aab71d7..cf811b6 100644 --- a/thankxBuddyApp/ModevUXSecondViewController.h +++ b/thankxBuddyApp/ModevUXSecondViewController.h @@ -13,4 +13,6 @@ UITableView *giveawaysTable; } +@property (nonatomic, retain) UINavigationController *navigationController; + @end diff --git a/thankxBuddyApp/ModevUXSecondViewController.m b/thankxBuddyApp/ModevUXSecondViewController.m index cc2a6f4..73b1cd3 100644 --- a/thankxBuddyApp/ModevUXSecondViewController.m +++ b/thankxBuddyApp/ModevUXSecondViewController.m @@ -6,13 +6,15 @@ // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // -#define giveawaysListURL [NSURL URLWithString:@"http://10.24.110.253:5000/products"] +#define giveawaysListURL [NSURL URLWithString:@"http://api.remix.bestbuy.com/v1/products(manufacturer=motorola)?apiKey=gcbrumxjpnwp2tg3ebhss933&format=json&sort=name.asc"] #import "ModevUXSecondViewController.h" #import "DetailViewController.h" @implementation ModevUXSecondViewController +@synthesize navigationController; + - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; @@ -46,6 +48,7 @@ - (void)viewDidLoad withObject:data waitUntilDone:YES]; }); + navigationController = [[UINavigationController alloc] init]; } - (void)viewDidUnload @@ -84,13 +87,14 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface - (void)fetchedData:(NSData *)responseData { //parse out the json data NSError* error; - giveawaysArray = [NSJSONSerialization + NSDictionary *productList = [NSJSONSerialization JSONObjectWithData:responseData //1 options:kNilOptions error:&error]; - NSLog(@"givawayarray=%@",giveawaysArray); + giveawaysArray = [productList objectForKey:@"products"]; +// NSLog(@"givawayarray=%@",giveawaysArray); } #pragma mark - Table view data source @@ -116,7 +120,6 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; } - UIFont *font = [UIFont fontWithName:@"Helvetica-Bold" size:14]; cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; NSString *title; @@ -126,18 +129,21 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N items = [giveawaysArray objectAtIndex:[indexPath row]]; NSLog(@"items=%@", items); - title = [items objectForKey:@"descShort"]; - // title = [[giftsDict objectAtIndex:indexPath.row] objectForKey:@"title"]; + title = [items objectForKey:@"name"]; [cell.textLabel setText:title]; + /* // http://10.23.28.44:5000/products NSString *baseUrl = [[NSString alloc] initWithString:@"http://10.24.110.253:5000"]; - NSString *itemUrl = [items objectForKey:@"img"]; + NSString *itemUrl = [items objectForKey:@"thumbnailImage"]; NSString *theImageUrl = [[NSString alloc] initWithFormat:@"%@%@", baseUrl, itemUrl]; + */ + + NSString *thumbnailImage = [items objectForKey:@"thumbnailImage"]; - UIImage *tn = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:theImageUrl]]]; + UIImage *tn = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:thumbnailImage]]]; //UIImage *tn = [UIImage imageWithData:[managedObject valueForKey:@"thumbnail"]]; cell.imageView.image = tn; @@ -157,7 +163,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath DetailViewController *detailViewController = [[DetailViewController alloc] init]; detailViewController.selectedItem = [giveawaysArray objectAtIndex:[indexPath row]]; -// [self.navigationController pushViewController:detailViewController animated:YES]; +// [navigationController pushViewController:detailViewController animated:YES]; }