0

UITableViewCell の左側に UIActivityIndi​​catorView を追加することは可能ですか? UITableViewCell の右側を開示インジケーターとして既に使用しています。

ありがとう。

4

2 に答える 2

2

もちろん。UIActivityIndi​​catorView をインスタンス化し、必要な場所に設定する .frame を指定し、それを cell.contentView のサブビューとして追加して、startAnimating.

UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] 
    initWithFrame:CGRectMake(0,0,20,20)]; //or whatever--this will put it in the top left corner of the cell
[cell.contentView addSubview:spinner]
[spinner startAnimating];
[spinner release];
于 2010-08-18T20:37:17.443 に答える
0

カスタム セルを作成すると、何でもできます。しかし、Apple のこのドキュメントは、通常の古い UITableViewCell にサブビューを追加するだけでなく、独自のサブビューを作成するだけでも、必要なすべてを提供するはずです。

于 2010-08-18T20:36:30.007 に答える