私は AQGridView の実装を行っており、すべてが順調に進んでいました。
しかし、今では以下のエラーが発生しています。
- (AQGridViewCell *) gridView: (AQGridView *)inGridView cellForItemAtIndex: (NSUInteger) index;
{
MagazineCell *cell = (MagazineCell *)[inGridView dequeueReusableCellWithIdentifier:@"cell"];
if (!cell) {
cell = [MagazineCell cell];
cell.reuseIdentifier = @"cell";
//Assigning to property with 'readonly' atribute not allowed
}
cell.backgroundColor = [UIColor clearColor];
cell.selectionStyle = AQGridViewCellSelectionStyleGlow;
cell.edicaoLabel.text = [[edicoesArray objectAtIndex:index] name];
cell.dataLabel.text = [[edicoesArray objectAtIndex:index] name];
return cell;
}
私はヘッドファイルでこれをやろうとしました
@property(nonatomic, readwrite) NSString * reuseIdentifier;
私も試しました
@property(nonatomic, assign) NSString * reuseIdentifier;
しかし、まだ仕事はありません。
プロジェクト「Actors for Netflix」のサンプルをダウンロードしましたhttps://github.com/adrianco/Actors-for-Netflix-on-iPad/
そして、このコードをビルドしようとすると同じ問題が発生し、プリプロセッサもそれを確認します。
この例では、クラス ファイルのヘッダーでプロパティを宣言していません。問題を解決するためにプロジェクトで試しました。
誰かが問題が何であるかを見ることができますか?
ありがとう!