forum

Home / DeveloperSection / Forums / Multidimensional array of NSInteger as instance variable

Multidimensional array of NSInteger as instance variable

Tarun Kumar158616-Jul-2015

I'm attempting to understand Objective C arrays. What I want to do is create a multidimensional NSInteger instance array.

Does the code immediately below create an array equivalent to initiating an array and running a double for loop containing NSNull at each point?

@interface Builder: UIView {

   NSInteger superDuperArray[5][4];

}

How do I add/replace specific data (NSIntegers) considering this is not an NSMutableArray? I need to do so elsewhere in the file, in several different methods.


Updated on 16-Jul-2015

Can you answer this question?


Answer

1 Answers

Liked By