reason: '[<__NSDictionaryI 0xa68ec40> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key caption.'
在字典賦值的時(shí)候出現(xiàn)這個(gè)問題,因?yàn)閟etvalue:forkey是NSMutableDictionary的方法,在NSDictionary中沒有這個(gè)方法,所以出現(xiàn)這個(gè)錯(cuò)誤
解決辦法
NSMutableDictionary *m = [[[self.form valueForKey:@"photos"] objectAtIndex:indexPath.row ] mutableCopy];
將NSDictionary轉(zhuǎn)化為NSMutableDictionary