unable to add NSURL object to NSMutableDictionary
- by user367919
I am just learning objective-c but can't figure out whats wrong with my code
Code:
NSMutableDictionary *myDic = [NSDictionary dictionary];
[myDic setObject:[NSURL URLWithString:@"http://www.apple.com"] forKey:@"Apple"];