草庐IT

removeObjectForKey

全部标签

ios - removeObjectForKey 不会从 .plist 中删除值

我正在开发具有TableView的iPhone应用程序,我想做的是点击UITableViewCell我想从plist中删除这些值,MOBILES.Brand.2和MOBILES.Brand.5如果它们存在在.plist中,如果它们不存在于.plist中,那么我想将其添加到我的.plist中这是我的.plist的结构::这是我的代码片段:-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(NSIndexPath*)indexPath{plistPath=[selfgetPlistPath];//PlistDic