我做了一个tableView,我需要选择多个选项.选项被选中,但是当我滚动表格视图时,复选标记选项消失,其他一些行显示该复选标记.这是我在代码didselectedrowAtindex的方法table_option是UITableView和selectedcells是NSMutableArray
[table_option deselectRowAtIndexPath:indexPath animated:YES];
NSNumber *rowNsNum = [NSNumber numberWithUnsignedInt:indexPath.row];
if ( [selectedCells containsObject:rowNsNum] )
{
if (cell.accessoryType == UITableViewCellAccessoryCheckmark)
cell.accessoryType = UITableViewCellAccessoryNone;
else
cell.accessoryType = UITableViewCellAccessoryCheckmark;
[selectedCells removeObject:rowNsNum];
sel.text=@"Select";
// cell.accessoryType = UITableViewCellAccessoryNone;
}
else
{
if (cell.accessoryType == UITableViewCellAccessoryCheckmark)
cell.accessoryType = UITableViewCellAccessoryNone;
else
cell.accessoryType = UITableViewCellAccessoryCheckmark;
[selectedCells addObject:rowNsNum];
sel.text=@"Selected";
// cell.accessoryType = UITableViewCellAccessoryCheckmark;
}
[table_option reloadData];
Run Code Online (Sandbox Code Playgroud)
请尽快帮忙
我已经在我的应用程序中集成了paypal,它在沙盒中工作正常,但现在我想在实时应用程序ID上实时运行所以我需要做什么?.我只想知道paypal的实时应用程序ID.pales paypal提供应用程序在ios app批准后的ID?我们需要在我们的应用程序中使用应用程序ID和用户名吗?简而言之,我需要在提交苹果之前了解在livepal帐户上测试应用程序的过程.这个问题可能会重复,但在之前的问题中没有明确的理解答案,所以如果你知道的话请帮助.谢谢