cocoa touch - " NSRangeException " problem -


I'm trying to create an iPhone app but I'm showing a message at the time of compiling that

< Pre> [Session 2009-01-29 18:25:40 starts from +0600] 2009-01-29 18: 25: 44.238 Simple game [36 9 1: 20b] *** Except without exception The applying app due to the 'NSR exchange', the reason: '*** - [NSCFRAA ObjectAntindex:]: Index (1) Beyond the Border (0)' 2009-01-29 18:25: 44.247 Sargagram [36 9 1: 20] B] Stack: (.........

Actually when I activate this code this message The code is displayed:

  NSMutableArray * todoArray = [[NSMutableArray alloc] init]; self.todos = todoArray; [todoArray release];  

How can I overcome this problem?

It seems that you are trying to reach out to the empty array's limit .


Comments