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
Post a Comment