0
如何解决这个错误(数据参数不被格式字符串使用)?如何解决这个错误的数据参数未使用的格式字符串?
这是我的代码:
FOUNDATION_EXPORT NSString *NSHomeDirectory(void);
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
{
NSString *path=[NSString stringWithFormat:@"MyDayJournal.plist",NSHomeDirectory()];
NSFileManager *man=[NSFileManager defaultManager];
if([man fileExistsAtPath:path])
{
[dataArray exchangeObjectAtIndex:fromIndexPath.row withObjectAtIndex:toIndexPath.row];
}
[dataArray writeToFile:path atomically:YES];
[tableView1 reloadData];
}
上NSHomeDirectory()
错误显示。为什么它显示错误?
谢谢兄弟,它为我工作。 – Phanindra 2015-04-03 05:07:47