w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
App crashes when storing NSArray in NSUserDefaults

You need to first allocate NSArray then you can pass the values in array. You can not directly pass value.

NSArray *a = [[NSArray alloc]initWithObjects:[NSJSONSerialization JSONObjectWithData:data options:0 error:nil], nil];





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.