title: Coverflow not working with webservices Data
body: <p>In my Application i want to display coverflow process, I got codes from online, it works fine while using a default array, but while using json Webservices it is not displaying images continously, it displays only one image, i want all the images to be displayed continously.Here's the sample codes,</p>
  
  <pre><code>- (void)viewDidLoad
  {
  
      NSString *Categor=@"http://hrmsiphone.atrity.info:7006/HRMSService.svc/
      GetEmployeeDesignationByLocation/Date=%@,AP=%@,Unit=%@,Location=%@";
  
  Date = @"2013-04-24";
  
  AP = @"A";
  Unit = @"A-UNIT-FULLSHOES";
  Location = @"Unit";
  NewDic2 = [Array objectAtIndex:0];
  
   NSString *Category = [NSString stringWithFormat:Categor,Date,AP,Unit,Location];
  
  dispatch_sync(kBgQueue, ^{
      NSData* data = [NSData dataWithContentsOfURL:  kLatestURL];
      [self performSelectorOnMainThread:@selector(fetchedData:)
                             withObject:data
                          waitUntilDone:YES];
  });
  
   - (void)fetchedData:(NSData *)responseData
     {
  
  NSError* error;
  NSDictionary* json = [NSJSONSerialization
                        JSONObjectWithData:responseData
  
  
                        options:kNilOptions
                        error:&amp;error];
  NSArray* Increment  = [ json  objectForKey:@"GetEmployeeDesignationByLocationResult"];
  
  
  
  self.Details2 = Increment;
  
  NSLog(@"Index: %@",Increment);
  
  }
   -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  
  {
  return [Details2 count];
  
  
  }
  
  
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:
        (NSIndexPath *)indexPath
    {
  static NSString *simpleTableIdentifier = @"AttenEmpPhto";
  
  AttenEmpPhto *cell = (AttenEmpPhto *)[tableView    
  dequeueReusableCellWithIdentifier:simpleTableIdentifier];      
  if (cell == nil)
  {
      NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"AttenEmpPhto" owner:self     
  
      cell = [nib objectAtIndex:0];
  
  }
  
  self.NewDic1=[self.Details2 objectAtIndex:indexPath.row];
  
  
  cell.Name.text = [NSString stringWithFormat:@"%@",  [self.NewDic1 objectForKey:    
   @"Employee_Name"]];            
  
  UIImageView *imageView = [[UIImageView alloc] initWithFrame:cell.frame];
  UIImage *image = [UIImage imageNamed:@"003923_full.jpg"];
  imageView.image = image;
  cell.backgroundView = imageView;
  
  NSString    *imageURL=@"http://hrmsiphone.atrity.info:7006/HRMSService.svc/
  GetEmpImage/EmployeeNo=%@";
  NSLog(@"Image: %@", imageURL);
  
  NSString *empImage = [NSString stringWithFormat:imageURL,[self.NewDic1 objectForKey:  
  @"Employee_No"]];
  
  
  
  NSData *imageData = [NSData dataWithContentsOfURL:[NSURL URLWithString:empImage]];
  
  
  
  
    covers = [NSMutableArray arrayWithObjects:[UIImage imageWithData:imageData],nil];
  
  NSLog(@"Image: %@", covers);
  
   NSLog(@"Image: %@", imageData);
  
  
  
  
  
  
  coverflow = [[TKCoverflowView alloc] initWithFrame:CGRectMake(0, 50, 500, 300)];
  coverflow.coverflowDelegate = self;
  coverflow.DataSource = self;
  [self.view addSubview:coverflow];
  [coverflow setNumberOfCovers:10];
  
  
  
  return cell;
  }
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)
    interfaceOrientation
  {
  // Return YES for supported orientations
  return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
  }
  
          #pragma Coverflow delegate methods
    - (void) coverflowView:(TKCoverflowView*)coverflowView coverAtIndexWasBroughtToFront:
       (int)index{
  NSLog(@"Front %d",index);
          }
  
  - (TKCoverflowCoverView*) coverflowView:(TKCoverflowView*)coverflowView coverAtIndex:
     (int)index
   {
  
  TKCoverflowCoverView *cover = [coverflowView dequeueReusableCoverView];
  
  if(cover == nil){
      // Change the covers size here
      cover = [[TKCoverflowCoverView alloc] initWithFrame:CGRectMake(0, 0, 224, 
              300)];     
      cover.baseline = 224;
  
  }
  
  
  
  cover.image = [covers objectAtIndex:index % [covers count]];
  </code></pre>
  
  <p>Here [covers count] returns 1 , but i need to have 2(EmployeeNo - 1 &amp; 3)</p>
  
  <pre><code> NSLog(@"CC: %lu", (unsigned long)[covers count] );
   NSLog(@"CM: %@", cover.image );
  
  return cover;
  
  }
     - (void) coverflowView:(TKCoverflowView*)coverflowView coverAtIndexWasDoubleTapped:
  (int)index{
  
  TKCoverflowCoverView *cover = [coverflowView coverAtIndex:index];
  if(cover == nil) return;
  [UIView beginAnimations:nil context:nil];
  [UIView setAnimationDuration:1];
  [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:cover 
      cache:YES];
  [UIView commitAnimations];
  
  //  NSLog(@"Index: %d",index);
  }
  
   - (void)didReceiveMemoryWarning
       {
  [super didReceiveMemoryWarning];
  
     }
  </code></pre>
  
  <p>Thanks in Advance.</p>