|
|
@@ -8,6 +8,7 @@
|
|
|
|
|
|
#import "CategorySearchFilterViewController.h"
|
|
|
#import "AppDelegate.h"
|
|
|
+#import "DefaultAppearance.h"
|
|
|
|
|
|
@interface CategorySearchFilterViewController ()
|
|
|
|
|
|
@@ -19,6 +20,60 @@
|
|
|
[super viewDidLoad];
|
|
|
|
|
|
|
|
|
+ RATreeView *treeView = [[RATreeView alloc] initWithFrame:self.treeContainer.frame];
|
|
|
+
|
|
|
+ treeView.delegate = self;
|
|
|
+ treeView.dataSource = self;
|
|
|
+ treeView.separatorStyle = RATreeViewCellSeparatorStyleSingleLine;
|
|
|
+
|
|
|
+ [treeView reloadData];
|
|
|
+ // [treeView expandRowForItem:phone withRowAnimation:RATreeViewRowAnimationLeft]; //expands Row
|
|
|
+ [treeView setBackgroundColor:UIColorFromRGB(0xF7F7F7)];
|
|
|
+
|
|
|
+ self.treeView = treeView;
|
|
|
+ // treeView.allowsSelection = true;
|
|
|
+ // treeView.allowsMultipleSelection = true;
|
|
|
+
|
|
|
+ /*
|
|
|
+
|
|
|
+ UIView *line = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 100.000001)];
|
|
|
+
|
|
|
+ [line setBackgroundColor:[UIColor clearColor]];
|
|
|
+ self.treeView.treeHeaderView = line;
|
|
|
+ */
|
|
|
+
|
|
|
+
|
|
|
+ NSString* value =[DefaultAppearance get_noneappearance_value:@"DefaultColor" valuename:@"frontcolor"];
|
|
|
+
|
|
|
+ if(value==nil)
|
|
|
+ value=@"";
|
|
|
+ unsigned long frontcolor = strtoul([value UTF8String],0,16);
|
|
|
+
|
|
|
+ UILabel *CategoryLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 5.5, self.view.frame.size.width, 33)];
|
|
|
+ CategoryLabel.textColor=UIColorFromRGB(frontcolor);
|
|
|
+ // CategoryLabel.backgroundColor = [UIColor redColor];
|
|
|
+ CategoryLabel.text=NSLocalizedString(@" Category", nil);
|
|
|
+ // [CategoryLabel sizeToFit];
|
|
|
+
|
|
|
+ self.treeView.treeHeaderView = CategoryLabel;
|
|
|
+
|
|
|
+ [self.treeContainer addSubview:treeView];
|
|
|
+
|
|
|
+// self.treeView.layer.shadowPath =[UIBezierPath bezierPathWithRect:self.treeView.bounds].CGPath;
|
|
|
+// self.treeView.layer.masksToBounds = false;
|
|
|
+// //添加四个边阴影
|
|
|
+//
|
|
|
+// self.treeView.layer.shadowColor = [UIColor blackColor].CGColor;
|
|
|
+// self.treeView.layer.shadowOffset = CGSizeMake(0, 0);
|
|
|
+// self.treeView.layer.shadowOpacity = 0.5;
|
|
|
+// self.treeView.layer.shadowRadius = 2.0;
|
|
|
+ self.treeView.layer.borderColor=[UIColor lightGrayColor].CGColor;
|
|
|
+ self.treeView.layer.borderWidth = 0.5;
|
|
|
+// self.treeView.layer.shadowRadius = 2.0;
|
|
|
+ self.textModelName.text = self.modelname;
|
|
|
+
|
|
|
+ self.textModelDescription.text = self.modeldescrip;
|
|
|
+
|
|
|
UIApplication * app = [UIApplication sharedApplication];
|
|
|
AppDelegate *appDelegate = (AppDelegate *)[app delegate];
|
|
|
if(appDelegate.bLogin)
|
|
|
@@ -120,6 +175,24 @@
|
|
|
if(alert.length>0)
|
|
|
[self.buttonAlert setTitle:alert forState:UIControlStateNormal];
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ {
|
|
|
+ NSString* bestseller =@"";
|
|
|
+ int count = [[self.bestseller_cadedate valueForKey:@"count"] intValue];
|
|
|
+ for(int i=0;i<count;i++)
|
|
|
+ {
|
|
|
+ NSDictionary* val_json =[self.bestseller_cadedate objectForKey:[NSString stringWithFormat:@"val_%d",i]];
|
|
|
+ int check = [[val_json valueForKey:@"check"] intValue];
|
|
|
+ if(check==1)
|
|
|
+ {
|
|
|
+ bestseller = [bestseller stringByAppendingString:[val_json valueForKey:@"value"]];
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(bestseller.length>0)
|
|
|
+ [self.buttonBestSeller setTitle:bestseller forState:UIControlStateNormal];
|
|
|
+ }
|
|
|
// Do any additional setup after loading the view.
|
|
|
}
|
|
|
|
|
|
@@ -183,6 +256,45 @@
|
|
|
|
|
|
[self.navigationController pushViewController:enumvc animated:true];
|
|
|
}
|
|
|
+
|
|
|
+- (IBAction)onBestSellerClick:(id)sender {
|
|
|
+ EnumSelectViewController* enumvc =[ self.storyboard instantiateViewControllerWithIdentifier:@"EnumSelectorViewController"];
|
|
|
+ // enumvc.delegate = self;
|
|
|
+ enumvc.max_select = 1;
|
|
|
+ //enumvc.updatePosition = indexPath;
|
|
|
+ // if([[required lowercaseString] isEqualToString:@"true"])
|
|
|
+ // enumvc.canbeEmpty = false;
|
|
|
+ // else
|
|
|
+ // enumvc.canbeEmpty =true;
|
|
|
+ enumvc.cadedate = [self.bestseller_cadedate mutableCopy];
|
|
|
+ enumvc.title = @"";
|
|
|
+ // enumvc.value = [value_json mutableCopy];
|
|
|
+ enumvc.single_select =true;
|
|
|
+
|
|
|
+
|
|
|
+ enumvc.returnValue = ^(NSMutableDictionary* value){
|
|
|
+ self.bestseller_cadedate = value;
|
|
|
+
|
|
|
+
|
|
|
+ NSString* qty =@"";
|
|
|
+ int count = [[value valueForKey:@"count"] intValue];
|
|
|
+ for(int i=0;i<count;i++)
|
|
|
+ {
|
|
|
+ NSDictionary* val_json =[value objectForKey:[NSString stringWithFormat:@"val_%d",i]];
|
|
|
+ int check = [[val_json valueForKey:@"check"] intValue];
|
|
|
+ if(check==1)
|
|
|
+ {
|
|
|
+ qty = [qty stringByAppendingString:[val_json valueForKey:@"value"]];
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [self.buttonBestSeller setTitle:qty forState:UIControlStateNormal];
|
|
|
+ };
|
|
|
+
|
|
|
+ [self.navigationController pushViewController:enumvc animated:true];
|
|
|
+}
|
|
|
+
|
|
|
- (IBAction)onQTYClick:(id)sender {
|
|
|
EnumSelectViewController* enumvc =[ self.storyboard instantiateViewControllerWithIdentifier:@"EnumSelectorViewController"];
|
|
|
// enumvc.delegate = self;
|
|
|
@@ -303,6 +415,13 @@
|
|
|
}
|
|
|
- (IBAction)onSearchClick:(id)sender {
|
|
|
|
|
|
+ NSString* modelname = self.textModelName.text;
|
|
|
+ if(modelname.length==0)
|
|
|
+ modelname = nil;
|
|
|
+
|
|
|
+ NSString* modeldescrip = self.textModelDescription.text;
|
|
|
+ if(modeldescrip.length==0)
|
|
|
+ modeldescrip = nil;
|
|
|
|
|
|
NSString* qty = [self.buttonQTY titleForState:UIControlStateNormal];
|
|
|
if(qty.length==0 || [qty isEqualToString:@"Click to select"])
|
|
|
@@ -320,156 +439,163 @@
|
|
|
if(alert.length==0 || [alert isEqualToString:@"Click to select"])
|
|
|
alert = nil;
|
|
|
|
|
|
+ NSString* bestseller = [self.buttonBestSeller titleForState:UIControlStateNormal];
|
|
|
+ if(bestseller.length==0 || [bestseller isEqualToString:@"Click to select"])
|
|
|
+ alert = nil;
|
|
|
+
|
|
|
|
|
|
if(self.OkClick)
|
|
|
- self.OkClick( available, qty, alert,price);
|
|
|
+ self.OkClick( modelname, modeldescrip,available, qty, alert,price,bestseller);
|
|
|
[self dismissViewControllerAnimated:true completion:nil];
|
|
|
}
|
|
|
+#pragma mark TreeView Delegate methods
|
|
|
+- (CGFloat)treeView:(RATreeView *)treeView heightForRowForItem:(id)item treeNodeInfo:(RATreeNodeInfo *)treeNodeInfo
|
|
|
+{
|
|
|
+ return 47;
|
|
|
+}
|
|
|
|
|
|
-//
|
|
|
-//#pragma mark EnumSelectViewControllerDelegate
|
|
|
-//-(void) EnumValueChanged:(NSMutableDictionary *)value indexPath :(NSIndexPath*) indexPath
|
|
|
-//{
|
|
|
-//
|
|
|
-//
|
|
|
-// self.alert_cadedate = value;
|
|
|
-//
|
|
|
-//
|
|
|
-// NSString* alert =@"";
|
|
|
-// int count = [[value valueForKey:@"count"] intValue];
|
|
|
-// for(int i=0;i<count;i++)
|
|
|
+- (NSInteger)treeView:(RATreeView *)treeView indentationLevelForRowForItem:(id)item treeNodeInfo:(RATreeNodeInfo *)treeNodeInfo
|
|
|
+{
|
|
|
+ return 3 * treeNodeInfo.treeDepthLevel;
|
|
|
+}
|
|
|
+
|
|
|
+- (BOOL)treeView:(RATreeView *)treeView shouldExpandItem:(id)item treeNodeInfo:(RATreeNodeInfo *)treeNodeInfo
|
|
|
+{
|
|
|
+ return YES;
|
|
|
+}
|
|
|
+
|
|
|
+- (BOOL)treeView:(RATreeView *)treeView shouldItemBeExpandedAfterDataReload:(id)item treeDepthLevel:(NSInteger)treeDepthLevel
|
|
|
+{
|
|
|
+ if([item[@"id"] isEqualToString:self.categoryid] )
|
|
|
+ return YES;
|
|
|
+ return NO;
|
|
|
+}
|
|
|
+
|
|
|
+- (void)treeView:(RATreeView *)treeView didSelectRowForItem:(id)item treeNodeInfo:(RATreeNodeInfo *)treeNodeInfo
|
|
|
+{
|
|
|
+
|
|
|
+// NSDictionary *data = item;
|
|
|
+// int count = [[data valueForKey:@"count"] intValue];
|
|
|
+// if(count==0)
|
|
|
// {
|
|
|
-// NSDictionary* val_json =[value objectForKey:[NSString stringWithFormat:@"val_%d",i]];
|
|
|
-// int check = [[val_json valueForKey:@"check"] intValue];
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+// NSString* _id = [data valueForKey:@"cid"];
|
|
|
+//
|
|
|
+// NSDictionary* ddd=[self check:_id source:[self.categoryMenu mutableCopy]];
|
|
|
+// self.categoryMenu=ddd;
|
|
|
+// UITableViewCell *cell = (UITableViewCell *)[self.treeView cellForItem:item];
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+// int check=[self is_check:_id source:self.categoryMenu];
|
|
|
// if(check==1)
|
|
|
-// {
|
|
|
-// alert = [alert stringByAppendingString:[val_json valueForKey:@"value"]];
|
|
|
-// break;
|
|
|
-// }
|
|
|
+// cell.accessoryType = UITableViewCellAccessoryCheckmark;
|
|
|
+// else
|
|
|
+// cell.accessoryType=UITableViewCellAccessoryNone;
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
// }
|
|
|
//
|
|
|
-// [self.buttonAlert setTitle:alert forState:UIControlStateNormal];
|
|
|
//
|
|
|
-// // UITableViewCell *cell = [self.editorTable cellForRowAtIndexPath:indexPath];
|
|
|
-// //
|
|
|
-// //
|
|
|
-// // // if(/*self.cancommit==false &&*/ string.length==0 && (textField.text.length<=1|| textField.text==nil))
|
|
|
-// // // {
|
|
|
-// // // CALayer *layer = [cell.contentView layer];
|
|
|
-// // // // layer.borderColor = [[UIColor redColor] CGColor];
|
|
|
-// // // // layer.borderWidth = 1.0;
|
|
|
-// // //
|
|
|
-// // // layer.shadowColor = [UIColor redColor].CGColor;
|
|
|
-// // // layer.shadowOffset = CGSizeMake(0, 0);
|
|
|
-// // // layer.shadowOpacity = 1;
|
|
|
-// // // layer.shadowRadius = 2.0;
|
|
|
-// // // }
|
|
|
-// // // else
|
|
|
-// // {
|
|
|
-// // CALayer *layer = [cell.contentView layer];
|
|
|
-// // // layer.borderColor = [[UIColor redColor] CGColor];
|
|
|
-// // // layer.borderWidth = 1.0;
|
|
|
-// //
|
|
|
-// // layer.shadowColor = [UIColor clearColor].CGColor;
|
|
|
-// // layer.shadowOffset = CGSizeMake(0, 0);
|
|
|
-// // layer.shadowOpacity = 1;
|
|
|
-// // layer.shadowRadius = 2.0;
|
|
|
-// // }
|
|
|
-// //
|
|
|
-// // NSLog(@"enum changed %ld_%ld",(long)indexPath.section,(long)indexPath.row);
|
|
|
-// //
|
|
|
-// // NSMutableDictionary* section_json=nil;
|
|
|
-// //
|
|
|
-// // NSMutableDictionary* item_json =[((NSMutableArray*)self.content_data_control[indexPath.section])[indexPath.row] mutableCopy];
|
|
|
-// //
|
|
|
-// //
|
|
|
-// // // NSString* param_name=[item_json valueForKey:@"name"];
|
|
|
-// // // NSString* param_val=nil;
|
|
|
-// // //
|
|
|
-// // // bool single_select =[[item_json valueForKey:@"single_select"] boolValue];
|
|
|
-// // //
|
|
|
-// // // int cade_count = [[value valueForKey:@"count"] intValue];
|
|
|
-// // //
|
|
|
-// // // NSMutableArray* arr_val = [[NSMutableArray alloc] init];
|
|
|
-// // //
|
|
|
-// // //
|
|
|
-// // // for(int cc=0;cc<cade_count;cc++)
|
|
|
-// // // {
|
|
|
-// // // NSDictionary * valjson=[value objectForKey:[NSString stringWithFormat:@"val_%d",cc ]];
|
|
|
-// // // if([[valjson valueForKey:@"check"] boolValue])
|
|
|
-// // // {
|
|
|
-// // // [arr_val addObject: [valjson valueForKey:@"value_id"]];
|
|
|
-// // // if(single_select)
|
|
|
-// // // break;
|
|
|
-// // // }
|
|
|
-// // //
|
|
|
-// // // }
|
|
|
-// // //
|
|
|
-// // // param_val = [arr_val componentsJoinedByString:@","];
|
|
|
-// // //
|
|
|
-// // // [self.changed_data setObject:param_val forKey:param_name];
|
|
|
-// //
|
|
|
-// // int refresh = [[item_json valueForKey:@"refresh"] intValue];
|
|
|
-// //
|
|
|
-// //
|
|
|
-// // NSString* subid=[item_json valueForKey:@"subid"];
|
|
|
-// //
|
|
|
-// // [item_json setObject:value forKey:@"cadedate"];
|
|
|
-// //
|
|
|
-// //
|
|
|
-// // if(subid==nil)
|
|
|
-// // {
|
|
|
-// // [item_json setValue:@"true" forKey:@"dirty"];
|
|
|
-// // section_json = [[self.content_data_download objectForKey:[NSString stringWithFormat:@"section_%ld",(long)indexPath.section ]] mutableCopy];
|
|
|
-// // int count=0;
|
|
|
-// //
|
|
|
-// // count=[[section_json valueForKey:@"count"] intValue];
|
|
|
-// //
|
|
|
-// // for(int i=0;i<count;i++)
|
|
|
-// // {
|
|
|
-// // NSDictionary * olditem=[section_json objectForKey:[NSString stringWithFormat:@"item_%d",i ]];
|
|
|
-// // if([[olditem valueForKey:@"name"] isEqualToString:[item_json valueForKey:@"name" ]])
|
|
|
-// // [section_json setObject:item_json forKey:[NSString stringWithFormat:@"item_%d",i ]];
|
|
|
-// //
|
|
|
-// //
|
|
|
-// // }
|
|
|
-// // }
|
|
|
-// // else
|
|
|
-// // {
|
|
|
-// // NSArray* idarr=[subid componentsSeparatedByString:@"_"];
|
|
|
-// // int section = [(NSString*)idarr[0] intValue];
|
|
|
-// // int item=[(NSString*)idarr[1] intValue];
|
|
|
-// //
|
|
|
-// //
|
|
|
-// // section_json = [[self.content_data_download objectForKey:[NSString stringWithFormat:@"section_%d", section]] mutableCopy];
|
|
|
-// // NSDictionary * olditem=[section_json objectForKey:[NSString stringWithFormat:@"item_%d",item ]];
|
|
|
-// // item_json= [self enum_subitem_changed:[olditem mutableCopy] subid:idarr value:item_json step:2];
|
|
|
-// // [item_json setValue:@"true" forKey:@"dirty"];
|
|
|
-// // [section_json setObject:item_json forKey:[NSString stringWithFormat:@"item_%d",item ]];
|
|
|
-// //
|
|
|
-// // }
|
|
|
-// //
|
|
|
-// //
|
|
|
-// // // [section_json setObject:item_json forKey:[NSString stringWithFormat:@"item_%ld",(long)indexPath.row ]];
|
|
|
-// //
|
|
|
-// // [self.content_data_download setObject:section_json forKey:[NSString stringWithFormat:@"section_%ld",(long)indexPath.section ]];
|
|
|
-// //
|
|
|
-// // self.content_data_control = [self translate_json:self.content_data_download changed:self.changed_data];
|
|
|
-// //
|
|
|
-// //
|
|
|
-// // if(refresh==1)
|
|
|
-// // {
|
|
|
-// // [self refresh] ;
|
|
|
-// // return ;
|
|
|
-// // }
|
|
|
-// //
|
|
|
-// //
|
|
|
-// // NSLog(@"CONTENT UPDATE:%@",[iSalesNetwork DataTOjsonString:self.content_data_download]);
|
|
|
-// //
|
|
|
-// //
|
|
|
-// //
|
|
|
-// // // NSLog(@"CONTENT translate:%@",[iSalesNetwork DataTOjsonString:self.content_data]);
|
|
|
-// // [self.editorTable reloadData ];
|
|
|
//
|
|
|
+//
|
|
|
+//
|
|
|
+// NSLog(@"menu select %@",data);
|
|
|
+}
|
|
|
+
|
|
|
+//- (void)treeView:(RATreeView *)treeView willDisplayCell:(UITableViewCell *)cell forItem:(id)item treeNodeInfo:(RATreeNodeInfo *)treeNodeInfo
|
|
|
+//{
|
|
|
+// if (treeNodeInfo.treeDepthLevel == 0) {
|
|
|
+// cell.backgroundColor = UIColorFromRGB(0xF7F7F7);
|
|
|
+// } else if (treeNodeInfo.treeDepthLevel == 1) {
|
|
|
+// cell.backgroundColor = UIColorFromRGB(0xD1EEFC);
|
|
|
+// } else if (treeNodeInfo.treeDepthLevel == 2) {
|
|
|
+// cell.backgroundColor = UIColorFromRGB(0xE0F8D8);
|
|
|
+// }
|
|
|
//}
|
|
|
+
|
|
|
+- (void)treeView:(RATreeView *)treeView willDisplayCell:(UITableViewCell *)cell forItem:(id)item treeNodeInfo:(RATreeNodeInfo *)treeNodeInfo
|
|
|
+{
|
|
|
+ if (treeNodeInfo.treeDepthLevel == 0) {
|
|
|
+ cell.backgroundColor = [UIColor whiteColor];
|
|
|
+ } else if (treeNodeInfo.treeDepthLevel == 1) {
|
|
|
+ cell.backgroundColor = UIColorFromRGB(0xD1EEFC);
|
|
|
+ } else if (treeNodeInfo.treeDepthLevel == 2) {
|
|
|
+ cell.backgroundColor = UIColorFromRGB(0xE0F8D8);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+#pragma mark TreeView Data Source
|
|
|
+
|
|
|
+- (UITableViewCell *)treeView:(RATreeView *)treeView cellForItem:(id)item treeNodeInfo:(RATreeNodeInfo *)treeNodeInfo
|
|
|
+{
|
|
|
+ // NSInteger numberOfChildren = [treeNodeInfo.children count];
|
|
|
+
|
|
|
+ UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"cell"];
|
|
|
+ // if(numberOfChildren>0)
|
|
|
+ // cell.detailTextLabel.text = [NSString stringWithFormat:@"Number of children %@", [@(numberOfChildren) stringValue]];
|
|
|
+ cell.textLabel.text = [((NSDictionary *)item) valueForKey:@"title"];
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ cell.accessoryType =UITableViewCellAccessoryNone;
|
|
|
+ // if (treeNodeInfo.treeDepthLevel == 0) {
|
|
|
+ // cell.detailTextLabel.textColor = [UIColor blackColor];
|
|
|
+ NSString* _id = [((NSDictionary *)item) valueForKey:@"cid"];
|
|
|
+ // int check=[self is_check:_id source:self.categoryMenu];
|
|
|
+ if([[((NSDictionary *)item) valueForKey:@"id"] isEqualToString:self.categoryid]&& [item[@"count"] intValue]==0)
|
|
|
+ {
|
|
|
+ cell.accessoryType = UITableViewCellAccessoryCheckmark;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ cell.accessoryType =UITableViewCellAccessoryNone;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ return cell;
|
|
|
+}
|
|
|
+
|
|
|
+- (NSInteger)treeView:(RATreeView *)treeView numberOfChildrenOfItem:(id)item
|
|
|
+{
|
|
|
+ if (item == nil) {
|
|
|
+
|
|
|
+ // UIApplication * app = [UIApplication sharedApplication];
|
|
|
+ // AppDelegate *appDelegate = (AppDelegate *)[app delegate];
|
|
|
+ return [[self.categoryMenu valueForKey:@"count" ] intValue];
|
|
|
+ // return [self.data count];
|
|
|
+ }
|
|
|
+
|
|
|
+ NSDictionary* data = item;
|
|
|
+ return [[data valueForKey:@"count"] intValue];
|
|
|
+ // RADataObject *data = item;
|
|
|
+ // return [data.children count];
|
|
|
+}
|
|
|
+
|
|
|
+- (id)treeView:(RATreeView *)treeView child:(NSInteger)index ofItem:(id)item
|
|
|
+{
|
|
|
+ NSDictionary *data = item;
|
|
|
+
|
|
|
+ if (item == nil) {
|
|
|
+
|
|
|
+ // UIApplication * app = [UIApplication sharedApplication];
|
|
|
+ // AppDelegate *appDelegate = (AppDelegate *)[app delegate];
|
|
|
+ NSDictionary * ret =[self.categoryMenu objectForKey:[NSString stringWithFormat:@"category_%ld",(long)index] ];
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+
|
|
|
+ return[data objectForKey:[NSString stringWithFormat:@"category_%ld",(long)index]];
|
|
|
+ /*
|
|
|
+
|
|
|
+ RADataObject *data = item;
|
|
|
+ if (item == nil) {
|
|
|
+ return [self.data objectAtIndex:index];
|
|
|
+ }
|
|
|
+
|
|
|
+ return [data.children objectAtIndex:index];
|
|
|
+ */
|
|
|
+}
|
|
|
+
|
|
|
@end
|