好久没来逛了,我又来寻求帮助了

这样一个字典类型,我要把他放到tableview中,前面的键对应分区、后面的值中得数组放到对应分区的表格中,请问怎么一个思路去做,是先把字典分割成两个数组,然后再捆绑到tableview吗?有没有方法,直接把字典类型用到tableview中?

[Swift] 纯文本查看 复制代码
Optional({
    A =     (
                {
            code = EGP;
            name = "\U57c3\U53ca\U9551";
        },
                {
            code = AUD;
            name = "\U6fb3\U5927\U5229\U4e9a\U5143";
        },
                {
            code = AUD;
            name = "\U6fb3\U5927\U5229\U4e9a\U5143";
        },
                {
            code = MOP;
            name = "\U6fb3\U95e8\U5143";
        },
                {
            code = DZD;
            name = "\U963f\U5c14\U53ca\U5229\U4e9a\U7b2c\U7eb3\U5c14";
        },
                {
            code = OMR;
            name = "\U963f\U66fc\U91cc\U4e9a\U5c14";
        },
                {
            code = ARS;
            name = "\U963f\U6839\U5ef7\U6bd4\U7d22";
        },
                {
            code = AED;
            name = "\U963f\U8054\U914b\U8fea\U62c9\U59c6";
        }
    );
    B =     (
                {
            code = BGN;
            name = "\U4fdd\U52a0\U5229\U4e9a\U5217\U5f17";
        },
                {
            code = ISK;
            name = "\U51b0\U5c9b\U514b\U6717";
        },
                {
            code = BHD;
            name = "\U5df4\U6797\U7b2c\U7eb3\U5c14";
        },
                {
            code = BRL;
            name = "\U5df4\U897f\U96f7\U4e9a\U5c14";
        },
                {
            code = PLN;
            name = "\U6ce2\U5170\U5179\U7f57\U63d0";
        },
                {
            code = BYR;
            name = "\U767d\U4fc4\U7f57\U65af\U5362\U5e03";
        }
    );
    D =     (
                {
            code = DKK;
            name = "\U4e39\U9ea6\U514b\U6717";
        }
    );
    E =     (
                {
            code = RUB;
            name = "\U4fc4\U7f57\U65af\U5362\U5e03";
        }
    );
    F =     (
                {
            code = PHP;
            name = "\U83f2\U5f8b\U5bbe\U6bd4\U7d22";
        }
    );
    G =     (
                {
            code = COP;
            name = "\U54e5\U4f26\U6bd4\U4e9a\U6bd4\U7d22";
        },
                {
            code = CRC;
            name = "\U54e5\U65af\U8fbe\U9ece\U52a0\U79d1\U6717";
        },
                {
            code = HKD;
            name = "\U6e2f\U5e01";
        },
                {
            code = HKD;
            name = "\U6e2f\U5e01";
        }
    );
    H =     (
                {
            code = KRW;
            name = "\U97e9\U5143";
        },
                {
            code = KRW;
            name = "\U97e9\U5143";
        }
    );
    J =     (
                {
            code = CAD;
            name = "\U52a0\U62ff\U5927\U5143";
        },
                {
            code = CAD;
            name = "\U52a0\U62ff\U5927\U5143";
        },
                {
            code = CZK;
            name = "\U6377\U514b\U514b\U6717";
        },
                {
            code = KHR;
            name = "\U67ec\U57d4\U5be8\U745e\U5c14";
        }
    );
    K =     (
                {
            code = HRK;
            name = "\U514b\U7f57\U5730\U4e9a\U5e93\U7eb3";
        },
                {
            code = QAR;
            name = "\U5361\U5854\U5c14\U91cc\U4e9a\U5c14";
        },
                {
            code = KWD;
            name = "\U79d1\U5a01\U7279\U7b2c\U7eb3\U5c14";
        },
                {
            code = KES;
            name = "\U80af\U5c3c\U4e9a\U5148\U4ee4";
        }
    );
    L =     (
                {
            code = MYR;
            name = "\U6797\U5409\U7279";
        },
                {
            code = CNH;
            name = "\U79bb\U5cb8\U4eba\U6c11\U5e01";
        },
                {
            code = RON;
            name = "\U7f57\U9a6c\U5c3c\U4e9a\U5217\U4f0a";
        },
                {
            code = LAK;
            name = "\U8001\U631d\U57fa\U666e";
        },
                {
            code = LBP;
            name = "\U9ece\U5df4\U5ae9\U9551";
        }
    );
    M =     (
                {
            code = MXN;
            name = "\U58a8\U897f\U54e5\U5143";
        },
                {
            code = MAD;
            name = "\U6469\U6d1b\U54e5\U9053\U62c9\U59c6";
        },
                {
            code = BUK;
            name = "\U7f05\U7538\U5143";
        },
                {
            code = USD;
            name = "\U7f8e\U5143";
        },
                {
            code = USD;
            name = "\U7f8e\U5143";
        }
    );
    N =     (
                {
            code = ZAR;
            name = "\U5357\U975e\U5170\U7279";
        },
                {
            code = NOK;
            name = "\U632a\U5a01\U514b\U6717";
        }
    );
    O =     (
                {
            code = EUR;
            name = "\U6b27\U5143";
        },
                {
            code = EUR;
            name = "\U6b27\U5143";
        }
    );
    R =     (
                {
            code = CNY;
            name = "\U4eba\U6c11\U5e01";
        },
                {
            code = CNY;
            name = "\U4eba\U6c11\U5e01";
        },
                {
            code = JPY;
            name = "\U65e5\U5143";
        },
                {
            code = JPY;
            name = "\U65e5\U5143";
        },
                {
            code = SEK;
            name = "\U745e\U5178\U514b\U6717";
        },
                {
            code = CHF;
            name = "\U745e\U58eb\U6cd5\U90ce";
        }
    );
    S =     (
                {
            code = RSD;
            name = "\U585e\U5c14\U7ef4\U4e9a\U7b2c\U7eb3\U5c14";
        },
                {
            code = LKR;
            name = "\U65af\U91cc\U5170\U5361\U5362\U6bd4";
        },
                {
            code = SAR;
            name = "\U6c99\U7279\U91cc\U4e9a\U5c14";
        }
    );
    T =     (
                {
            code = TZS;
            name = "\U5766\U6851\U5c3c\U4e9a\U5148\U4ee4";
        },
                {
            code = THB;
            name = "\U6cf0\U56fd\U94e2";
        }
    );
    W =     (
                {
            code = UGX;
            name = "\U4e4c\U5e72\U8fbe\U5148\U4ee4";
        },
                {
            code = BND;
            name = "\U6587\U83b1\U5143";
        }
    );
    X =     (
                {
            code = HUF;
            name = "\U5308\U7259\U5229\U798f\U6797";
        },
                {
            code = SYP;
            name = "\U53d9\U5229\U4e9a\U9551";
        },
                {
            code = SGD;
            name = "\U65b0\U52a0\U5761\U5143";
        },
                {
            code = TWD;
            name = "\U65b0\U53f0\U5e01";
        },
                {
            code = TRY;
            name = "\U65b0\U571f\U8033\U5176\U91cc\U62c9";
        },
                {
            code = ZMK;
            name = "\U65b0\U7684\U8d5e\U6bd4\U4e9a\U514b\U74e6\U67e5";
        },
                {
            code = NZD;
            name = "\U65b0\U897f\U5170\U5143";
        }
    );
    Y =     (
                {
            code = ILS;
            name = "\U4ee5\U8272\U5217\U65b0\U9521\U514b\U5c14";
        },
                {
            code = IQD;
            name = "\U4f0a\U62c9\U514b\U7b2c\U7eb3\U5c14";
        },
                {
            code = IDR;
            name = "\U5370\U5c3c\U5362\U6bd4";
        },
                {
            code = INR;
            name = "\U5370\U5ea6\U5362\U6bd4";
        },
                {
            code = JOD;
            name = "\U7ea6\U65e6\U7b2c\U7eb3\U5c14";
        },
                {
            code = GBP;
            name = "\U82f1\U9551";
        },
                {
            code = GBP;
            name = "\U82f1\U9551";
        },
                {
            code = VND;
            name = "\U8d8a\U5357\U76fe";
        }
    );
    Z =     (
                {
            code = CLP;
            name = "\U667a\U5229\U6bd4\U7d22";
        }
    );
})


求救如何在tableview中输出字典?

求救如何在tableview中输出字典? - 敏捷大拇指 - 求救如何在tableview中输出字典?