ios - Switch Statement for UITableView -


i know cannot switch on nsdictionary, here trying have nsdictionary such:

mydict = {"one":@["foo", "bar"], "two":@[@"see", "tee"]} 

the acutely dictionary longer , has more elements point.

i not trying switch kind of cell use in uitableview depending on key of dict. in ideal world

switch (mydict) {         case "one":             //do stuff             break;         case "two":             //do stuff             break;          default:             break;     } 

how achieve same thing?

thanks help


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -