iは、これらの要素によってmadedテーブルの行を有する:テーブル行のスクロールを高速化するには?
1 - 画像ビュー(カレンダー)
4からcellForRowAtIndexPath
にuilabel(月、日、タイトル、説明)
I
@try {
newsRow = ((NewsRowController *)[tableView dequeueReusableCellWithIdentifier:@"cell"]);
if (newsRow == nil) {
if (IS_IPAD)
[[NSBundle mainBundle] loadNibNamed:@"NewsRow_ipad" owner:self options:nil];
else [[NSBundle mainBundle] loadNibNamed:@"NewsRow" owner:self options:nil];
if ([tableArray count] > 0) {
[newsRow setCellDataWithName:[tableArray objectAtIndex:indexPath.row]
andDate:[descArray objectAtIndex:indexPath.row]
day:[dayArray objectAtIndex:indexPath.row]
month:[monthArray objectAtIndex:indexPath.row]];
}
}
}
@catch (NSException * e) {
NSLog(@"fail.");
}
return newsRow;
次に、tableArray
、:このようにラベル(画像が同じであり、インタフェースビルダーによって挿入される)充填,dayArray
,monthArray
は、viewDidLoad
に入力されたNSMutableArrayです。
なぜiPhoneデバイス(私のテストは3G)は、スクロールアップが遅すぎますか?
私はテーブルを高速化するために削除する必要がありますか?
これは私のコードのすべてのですが、私はよりよい解決策を見つけることができません...
EDIT:
私は、識別子を設定することはできません...私はドン」トン...
それを見て、私のニュース行コントローラーは次のとおりです。iphonistの世界から
@interface NewsRowController : UITableViewCell
任意のアイデア? :)
おかげで、
、私は非常に[WWDC 2010のビデオ]を見てお勧めします(http://developer.apple.com/videos/wwdc/2010/)セッション131 - 「iPhone OSでのパフォーマンスの最適化」。テーブルビューをスムーズにスクロールさせるための大きなセグメントがあります。 –