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

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

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

StringGrid issue in Delphi XE8 firemonkey mobile app -