• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Crash with UITableView reloadRowsAtIndexPaths:withRowAnimation:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash with UITableView reloadRowsAtIndexPaths:withRowAnimation:


  • Subject: Crash with UITableView reloadRowsAtIndexPaths:withRowAnimation:
  • From: Laurent Daudelin <email@hidden>
  • Date: Tue, 21 Aug 2012 23:49:37 -0700

iOS 5.0 simulator or device.

When I call this method like this:
				[[NSOperationQueue mainQueue] addOperationWithBlock:^{
				[self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:
														[NSIndexPath indexPathForRow:0 inSection:0],
														[NSIndexPath indexPathForRow:1 inSection:0],
														[NSIndexPath indexPathForRow:2 inSection:0],
														[NSIndexPath indexPathForRow:3 inSection:0],
														nil]
									  withRowAnimation:UITableViewRowAnimationNone];
				}];

the app crashes with a SIGTRAP:
2012-08-21 23:48:05.173 Erodr[15594:c07] *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-1912.3/UITableView.m:1046

However, if I send the same tableview reloadData, then all is fine.

What's wrong with my reloadRowsAtIndexPath:withRowAnimations:?

-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://www.nemesys-soft.com/
Logiciels Nemesys Software					email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Crash with UITableView reloadRowsAtIndexPaths:withRowAnimation:
      • From: Luke Hiesterman <email@hidden>
  • Prev by Date: Re: Sandboxing die.die.die
  • Next by Date: Re: Sandboxing die.die.die
  • Previous by thread: Re: iOS IB Object
  • Next by thread: Re: Crash with UITableView reloadRowsAtIndexPaths:withRowAnimation:
  • Index(es):
    • Date
    • Thread