Questions tagged [nsrangeexception]

NSRangeException is raised when you access a range outside its normal bounds. Range exceptions most commonly occur when looping an array starting at index 1 rather than starting at index 0 as intended.

130 questions
-1
votes
2 answers

UITableView bounds Terminating app 'NSRangeException' -[__NSArrayM objectAtIndex:]: index 2 beyond bounds [0 .. 1]'

Having trouble with the following bit of code: I have this LeavemanagementViewController.m i am extracting and loading datas from xml from server. total number of elements is depends upon the array. -(void)RejectActionPressed:(id)sender { if…
-1
votes
1 answer

Trouble reading a remote pdf from a NSArray content?

I want to read some remote pdfs so I create an NSArray containing the urls, but when I try to read it I get this: Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 2 beyond bounds [0 ..…
-1
votes
1 answer

How to solve run time error of Range or index out of bounds?

I am beginner of iPhone and I got the runtime error shown below. When I pass the object in the getColor method "textView.textColor=[self getColor:appDelegate.pickcolor];" I get the error Terminating app due to uncaught exception…
-2
votes
3 answers

What is the error "App Terminating"?

Error: * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0]' Here my code: -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath…
seggy
  • 1,176
  • 2
  • 18
  • 38
-2
votes
2 answers

iOS: Terminating app due to uncaught exception 'NSRangeException'

I have searched through a number of these NSRangeException error threads but can't seem to find an answer to my question. Here is my error: 2015-08-15 17:28:43.793 UTK Recruiting[8794:254203] * Terminating app due to uncaught exception…
-2
votes
3 answers

why iOS App terminating due to NSRangeException

I'm having a weird error popping up. It's listing that my app is Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array' What puzzles me is that the app runs…
-2
votes
1 answer

[__NSArrayI objectAtIndex:]: index 2 beyond bounds [0 .. 1]'

This is the log of my nsarray with two strings. GROUPSFORDISPLAY ( "Serie A", "Serie B" And this is exactly what I want do show in tableviewcells, but app is crashing instead. The code I'm using is: - (UITableViewCell *)tableView:(UITableView…
ferrojr
  • 339
  • 2
  • 4
  • 9
-2
votes
2 answers

Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 3 beyond bounds [0 .. 2]

When I am running the iOS, then show the main menu, and two parts of the main menu category and product. When I click on the category this error is occurrs: Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI…
Adnan Arshad
  • 51
  • 1
  • 1
  • 6
-6
votes
1 answer

Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 5 beyond bounds [0 .. 4] '

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *simpleTableIdentifier = @"SimpleTableItem"; SimpleeTableCell *cell = [tableView…
1 2 3
8
9