forked from liuchaogenius/DianjiaApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
87 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
15 changes: 15 additions & 0 deletions
15
YHB_Prj/YHB_Prj/FourthViewController/ProblemGoods/PGModel/PGProductList.h
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// PGProductMode.h | ||
// YHB_Prj | ||
// | ||
// Created by Johnny's on 15/9/10. | ||
// Copyright (c) 2015年 striveliu. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface PGProductList : NSObject | ||
@property (nonatomic, strong) NSMutableArray *productList; | ||
- (void)unPacketData:(NSDictionary *)aDataDict; | ||
|
||
@end |
37 changes: 37 additions & 0 deletions
37
YHB_Prj/YHB_Prj/FourthViewController/ProblemGoods/PGModel/PGProductList.m
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// PGProductMode.m | ||
// YHB_Prj | ||
// | ||
// Created by Johnny's on 15/9/10. | ||
// Copyright (c) 2015年 striveliu. All rights reserved. | ||
// | ||
|
||
#import "PGProductList.h" | ||
#import "SPGLProductMode.h" | ||
|
||
@implementation PGProductList | ||
|
||
- (instancetype)init | ||
{ | ||
if(self = [super init]){ | ||
self.productList = [NSMutableArray arrayWithCapacity:0]; | ||
} | ||
return self; | ||
} | ||
|
||
- (void)unPacketData:(NSDictionary *)aDataDict | ||
{ | ||
NSArray *arry = [aDataDict objectForKey:@"rows"]; | ||
if(arry && arry.count > 0) | ||
{ | ||
for(NSDictionary *dict in arry) | ||
{ | ||
SPGLProductMode *mode = [[SPGLProductMode alloc] init]; | ||
[mode unPacketData:dict]; | ||
[self.productList addObject:mode]; | ||
} | ||
} | ||
} | ||
|
||
|
||
@end |
This file contains 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
This file contains 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
This file contains 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