mutable method is send to imutable object

NSMutableDictionary = [[NSMutableDictionary alloc]init];

yiJianSelectItmes = [NSMutableDictionary dictionaryWithDictionary:[defaults objectForKey:@"yiJianQueryItems"]];//得到的是可變的

yiJianSelectItmes = (NSMutableDictionary *)[defaults objectForKey:@"yiJianQueryItems"];//雖然強制轉換了 但是得到的依然我的是不可變的,所以會報錯mutable method is send to imutable object

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章