collection uitableview ios6 coverflow

uitableview - collection - cómo mostrar la lista de la vista de tabla como flujo de cobertura en ios6.1



scaling carousel swift (1)

Soy nuevo en la programación de iOS. Encuentro el tutorial para mostrar la vista de la imagen como flujo de cobertura como se muestra en el enlace http://code4app.net/ios/iCarousel-for-Cover-Flow/4f87d2db06f6e79d32000000

pero mi requisito es mostrar la lista de tablas como flujo de cobertura. Por favor, ayúdame.


Aquí he usado la vista iCarousel. Después de integrar el SDK (importar iCarousel.h & iCarousel.m) en su aplicación. Cree la vista ICarousel y la vista de tabla integrada en todas las subvistas de icarousel. Aquí está mi código

En archivo .h

iCarousel *categorySubView;

En el archivo .M.

-(Void)createIcarousel{ categorySubView = [[iCarousel alloc]initWithFrame:CGRectMake(10, 108, 480, 125)]; // categorySubView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; categorySubView.delegate = self; categorySubView.dataSource = self; categorySubView.type=iCarouselTypeCoverFlow2; [self.view addSubview:categorySubView]; } -(NSUInteger)numberOfItemsInCarousel:(iCarousel *)carousel { return 10; } - (UIView *) carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index reusingView:(UIView *)view{ UITableView *sampleTable = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 150, 150) style:UITableViewStylePlain]; sampleTable.dataSource = self; sampleTable.delegate = self; [sampleTable setBackgroundColor:[UIColor blackColor]]; return sampleTable; } - (BOOL)carousel:(iCarousel *)carousel shouldSelectItemAtIndex:(NSInteger)index{ return YES; } - (CGFloat)carouselItemWidth:(iCarousel *)carousel { //usually this should be slightly wider than the item views return 180; } #pragma Table view delegate Methods - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 10; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; } // Configure the cell... // cell.textLabel.text = [yourarray objectAtIndex:indexPath.row]; return cell; }

Su salida fina funciona así ...