2013-06-04 70 views
0

想不通怎麼辦UITableViewCell自定義模式,像小區this自定義的UITableViewCell編輯模式

化妝刷卡動畫,以便UIPickerView會出現,就像刪除

我想我需要做的在我這個方法控制:

- (void)setEditing:(BOOL)editing animated:(BOOL)animated 
{ 
    [super setEditing:editing animated:animated]; 
    [self.tableView setEditing:editing animated:animated]; 
    //add something here 
} 

或在我的自定義單元格類:

-(void)setEditing:(BOOL)editing animated:(BOOL)animated 

找到答案custom editingAccessoryView not working

回答

1

您應該添加UIPickerView到你的表格單元格作爲一個子視圖

+0

其中我需要添加uipickerview - (void)setEditing:(BOOL)編輯動畫:(BOOL)動畫? –

+0

以及如何動畫? –

0

添加自定義選擇器作爲子視圖,並保持它hidden.when開始編輯的委託方法通過設置使視圖展示隱藏屬性不

-1

當你在進行細胞在方法-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath這裏的tableview顯示,你可以根據你的需要添加UIPickerviewUITableViewCell喜歡這個 -

[cell.contentView addSubview:pickerView]; 

希望這有助於。

+0

我想動畫uitableviewcell比你從右到左滑動單元格和pickerView將出現動畫 –

相關問題