1
タイトルとして、UITableViewCellEditingStyleDeleteボタン/アイコンをグループ化されたテーブルビューのtableviewcell内に配置することはできますか?グループ化されたテーブルビュー内にUITableViewCellEditingStyleDeleteアイコンを配置する良い方法はありますか?
- (void)setEditing:(BOOL)editing animated:(BOOL)animated
{
[self setNeedsLayout];
}
- (void)layoutSubviews
{
[UIView beginAnimations:nil context:nil];
[UIView setAnimationBeginsFromCurrentState:YES];
[super layoutSubviews];
if (((UITableView *)self.superview).isEditing)
{
CGRect contentFrame = self.contentView.frame;
contentFrame.origin.x = EDITING_HORIZONTAL_OFFSET;
self.contentView.frame = contentFrame;
}
else
{
CGRect contentFrame = self.contentView.frame;
contentFrame.origin.x = 0;
self.contentView.frame = contentFrame;
}
[UIView commitAnimations];
}
だから我々は変更を加えた場合、我々はそれを行うことができます。
ありがとう、私は試してみましょう。 – Zteeth