• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

また忘れたのでメモ。
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 satoko on Thu 8 Sep 2011 at 17:08 with 0 comments