8th Thu
UITableView用のNSIndexPathの作り方
また忘れたのでメモ。
NSIndexPath UIKit Additions というタイトルでiOS 4.3 Libraryに登録されています。
+ (NSIndexPath *)indexPathForRow:(NSUInteger)row inSection:(NSUInteger)section
コードにこんな感じで:
rails>>
NSIndexPath* indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
<<--
posted by
satoko on Thu 8 Sep 2011 at 17:08 with 0 comments