这是我的代码,我创建了一组图像,通过修饰图像将其引导至另一个页面。我得到了图像的封面,但无法为图像设置操作。有人可以帮忙吗?...
[super viewDidLoad];
loadImagesOperationQueue = [[NSOperationQueue alloc] init];
NSString *imageName;
for (int i=0; i<10; i++) {
imageName = [[NSString alloc] initWithFormat:@"cover_%d.jpg", i];
[(AFOpenFlowView *)self.view setImage:[UIImage imageNamed:imageName] forIndex:i];
[imageName release];
NSLog(@"%d is the index",i);
}
[(AFOpenFlowView *)self.view setNumberOfImages:10];
- (UIImage *)defaultImage{
return [UIImage imageNamed:@"cover_1.jpg"];
}
在这里,我按照以下链接教程获取封面流.. http://blog.objectgraph.com/index.php/2010/04/09/how-to-add-coverflow-effect-on-your-iphone-应用程序-openflow/