UITableViewCell の左側に UIActivityIndicatorView を追加することは可能ですか? UITableViewCell の右側を開示インジケーターとして既に使用しています。
ありがとう。
UITableViewCell の左側に UIActivityIndicatorView を追加することは可能ですか? UITableViewCell の右側を開示インジケーターとして既に使用しています。
ありがとう。
もちろん。UIActivityIndicatorView をインスタンス化し、必要な場所に設定する .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];
カスタム セルを作成すると、何でもできます。しかし、Apple のこのドキュメントは、通常の古い UITableViewCell にサブビューを追加するだけでなく、独自のサブビューを作成するだけでも、必要なすべてを提供するはずです。