How to create NSDictionary with values?


I have seen examples on the Web in github and NS documentation too. But i didnt find any suitable example to initialize NSDictionary.
e.g the following don’t work with code hinting support:

declare var NSDictionary: any;
export function setHintColor(args: { view: TextField, color: Color }) {
  let dictionary = new NSDictionary(

I would like to initialize dictionary as shown below in Typescript:

NSDictionary *params = @{@"userName"     : @"rob",
                         @"userEmail"    : @"",
                         @"userPassword" : @"password"};


Maybe this will help you:


i have already checked on this…