how to use dictionary in ios 11