¡@

Home 

2014/10/15 ¤U¤È 10:04:55

iphone Programming Glossary: categoryarray

How to delete a row from UITableView

http://stackoverflow.com/questions/4497925/how-to-delete-a-row-from-uitableview

NSIndexPath indexPath if editingStyle UITableViewCellEditingStyleDelete Delete the row from the data source categoryArray objectAtIndex indexPath.row tableView deleteRowsAtIndexPaths NSArray arrayWithObject indexPath withRowAnimation YES else.. #import DeleteCategoryTableView.h #import KeyCryptAppAppDelegate.h @implementation DeleteCategoryTableView @synthesize categoryArray #pragma mark #pragma mark Initialization void initializeCategoryArray sqlite3 db KeyCryptAppAppDelegate getNewDBConnection.. if sqlite3_prepare_v2 db sql 1 compiledStatement NULL SQLITE_OK while sqlite3_step compiledStatement SQLITE_ROW categoryArray addObject NSString stringWithUTF8String char sqlite3_column_text compiledStatement 0 else NSAssert1 0 @ Error preparing..