Objective-c array passing




(5.00 out of 5)



(5.00 out of 5)



(5.00 out of 5)



(5.00 out of 5)



(5.00 out of 5)



(5.00 out of 5)



(5.00 out of 5)





Objective-c array passing
Log in to answer.
Copyright © dBuggr LLC - All Rights Reserved.
leothenerd 7:08 pm on December 14, 2009
you can pass a C array to a method:
Or use the [] syntax:
or use the explicit size syntax (which doesn’t really matter for 1-D arrays):
And you can pass in pointers to pointers to pass back a resized array originally allocated by malloc:
Passing in arrays of Objective-C types: