从NSDictionary

时间:2016-06-14 06:56:01

标签: objective-c uitableview nsmutablearray nsdictionary

我有一个 NSDictionary ,其中包含来自XML的值,现在我需要将它放在 NSMutableArray 中,以便在我的 UITableView中输出 STRONG>。

这是我解析xml时得到的数据

                    {
            End =                 {
                text = " \n\t\t2016-06-12 01:51:51”;
            };
            Person =                 {
                PersonName =                     {
                    text = "Check”;
                };
                text = "\n\t\t";
            };
            Person2 =                 {
                Person2Name =                     {
                    text = "Try”;
                };
                text = "\n\t\t";
            };
            Start =                 {
                text = "2016-06-12 00:00:00";
            };

            };

        },

                    {
            End =                 {
                text = " \n\t\t2016-06-13 00:59:59";
            };
            Person =                 {
                PersonName =                     {
                    text = “Purpose”;
                };
                text = "\n\t\t";
            };
            Person2 =                 {
                Person2Name =                     {
                    text = “None”;
                };
                text = "\n\t\t";
            };
            Start =                 {
                text = "\n    \t2016-06-13 02:00:00";
            };

数据的大小或长度将动态如何将该数据存储到我的NSMutableArray中,以便我可以在我的UITableView中输出它

Person    Person2    End         Start
Check     Try        01:51:51    00:00:00
Purpose   None       00:59:59    02:00:00

0 个答案:

没有答案