Forum Xamarin.iOS

Widget with app groups

romkatzromkatz ILMember ✭✭

When I am running my application on simulator everything works, but when I install it on a real device and run it, I get:
"object reference not set to an instance of an object".
My code is:

var defs = new NSUserDefaults("", NSUserDefaultsType.SuiteName);
var equities = defs.ValueForKey(new NSString("key1"));

defs.ValueForKey(new NSString("key1")) - this row crashes my app.

Thank you

Sign In or Register to comment.