My code gives an error saying
No visible interface for 'NSMutableDictionary' declares the selector 'addObjects:forKey:'
.h
@interface ViewController : UIViewController{
NSMutableDictionary *credtialsDictionary;
}
-(IBAction)registerlogin;
@end
.m
@implementation ViewController
-(IBAction)registerlogin{
[credtialsDictionary addObjects:passwordFieldregister.text forKey:usernameFieldregister];
}
@end
I can't figure out why this IBAction
isn't letting me add objects to the NSMutableDictionary