[英]iPhone SDK Simple Question
是否可以在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];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.