私は自分のアプリケーションでCoverFlowを使用していますが、問題なく動作していますが、coverflowで前面に表示される画像のタイトルを表示する必要があります。iphoneのCoverflow Imageテンプレートにタイトルを表示する
loadImagesOperationQueue = [[NSOperationQueue alloc] init];
for (int i=0; i < 10; i++)
{
imageName = [[NSString alloc] initWithFormat:@"cover_%d.jpg", i];
[(AFOpenFlowView *)self.view setImage:[UIImage imageNamed:imageName] forIndex:i];
NSLog(@"my image name is %@",imageName);
NSLog(@"%d is the index",i);
}
[(AFOpenFlowView *)self.view setNumberOfImages:10];
私が実行したいスクリーンショットはありますか。
uが結果を手に入れましたか? –
label = [[UILabel alloc] initWithFrame:CGRectMake(0、280、145、50)]; \t \t label.opaque = YES; \t \t label.hidden = YES; \t \t label.textColor = [UIColor whiteColor]; \t \t label.backgroundColor = [UIColor clearColor]; \t \t label.font = [UIFont boldSystemFontOfSize:20]; \t \t label.textAlignment = UITextAlignmentCenter; [self addSubview:label];これはAFITemViewクラスで - (id)initWithFrame:(CGRect)フレームクラス –
私はlableで行っている、私のアプリは[coverImageName setObject:coverView.imageName forKey:coverNumber]でクラッシュしている、クラッシュレポートでは、 ' - [ __NSCFDictionary setObject:forKey:]:nil値(キー:0)を挿入しようとしています ' – Valli