Hi All,
I have a strange problem.
I have an interface MyInterface : UIView
inside that I have a NSArray* arr as member variable.
in the function initFrame
I initialize it with [NSArray arraywithobjects:...];
in this function when i try accessing an item using [arr objectAtIndex:0] , it runs fine and gives me proper object.
in the function touchended:....
if i try same [arr objectAtIndex:0] I get a crash.
why so ?
I have done this variable as @property and @synthesize also
no success..
please share any thought for solution
regards
Jagat
I have a strange problem.
I have an interface MyInterface : UIView
inside that I have a NSArray* arr as member variable.
in the function initFrame
I initialize it with [NSArray arraywithobjects:...];
in this function when i try accessing an item using [arr objectAtIndex:0] , it runs fine and gives me proper object.
in the function touchended:....
if i try same [arr objectAtIndex:0] I get a crash.
why so ?
I have done this variable as @property and @synthesize also
no success..
please share any thought for solution
regards
Jagat