-6

主数组:

    (
    "Thursday, Apr 18,2013",
    xyz,
        (
        "give ",
        "lv"
    ),
        (
        "wed",
        "mon"
    )

  )

对于主数组,我需要添加子数组:

Sub Array : (
  "hi"
)

当单击某些 x 按钮子数组对象时,示例会增加:

Sub Array : (
"hi"
"hello"
)

如何添加到主阵列?

4

1 回答 1

5

您可以使用 :

[array replaceObjectAtIndex:index withObject:newObject];
于 2013-04-18T09:37:31.440 回答