Objective C copy array to another array with index 1 -


i have array 1 object in @ index 0 if correct. copy array x objects first array 1 object, leaving object there so:

array 1: objecta

array 2: object1, object 2, object 3

now array 1 = copy array 2 array 1

array 1: objecta, object1, object2, object 3....

how can that?

try this:

   array1 = [array1 arraybyaddingobjectsfromarray:array2]; 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -