data = [NSDictionary dictionaryWithContentsOfFile:
[[NSBundle mainBundle] pathForResource:@"INFO" ofType:@"plist"]];
name = [[data objectForKey:@"Name"]stringValue];
I am getting a SIGABRT error on when I try to give create name. All the names are alright. What could be wrong?
I have a INFO.plist file in my project. It has a row of type String. The value is Test.
Provided
nameis anNSString *, the following ought to work:NSDictionary‘s-objectForKey:returns the object, which will already be anNSString. (I’m not sure why you’re calling-stringValueon it, but that could cause a crash or exception).