Uitableview 更改自定义单元格中EditingAccessoryView的位置
我想在我的手机中移动EditingAccessoryView的位置。我尝试了以下方法,但没有成功:Uitableview 更改自定义单元格中EditingAccessoryView的位置,uitableview,xamarin.ios,Uitableview,Xamarin.ios,我想在我的手机中移动EditingAccessoryView的位置。我尝试了以下方法,但没有成功: UIActivityIndicatorView activityIndicator = new UIActivityIndicatorView(UIActivityIndicatorViewStyle.Gray); activityIndicator.Frame.X = 227f; cell.EditingAccessoryView = activityIndicator; 我用GetCell方
UIActivityIndicatorView activityIndicator = new UIActivityIndicatorView(UIActivityIndicatorViewStyle.Gray);
activityIndicator.Frame.X = 227f;
cell.EditingAccessoryView = activityIndicator;
我用GetCell方法来做这件事
如有任何想法,将不胜感激
谢谢,
瑞克那怎么办
cell.editingAccessoryView.frame = CGRectMake(0, 0, 40, 40);
在
解释:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *cellIdentifier = @"cellIdentifier";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
if(cell == nil) {
cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:cellIdentifier];
cell.editingAccessoryView.frame = CGRectMake(0, 0, 40, 40);
}
return cell;
}
那怎么办
cell.editingAccessoryView.frame = CGRectMake(0, 0, 40, 40);
在
解释:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *cellIdentifier = @"cellIdentifier";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
if(cell == nil) {
cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:cellIdentifier];
cell.editingAccessoryView.frame = CGRectMake(0, 0, 40, 40);
}
return cell;
}