-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 3/14/11 12:01 PM, WT wrote: > thanks for your reply. As I posted subsequently to my original > message, I found that very answer you recommended in several places > online, but some of them suggest bracketing the call to > -reloadRowsAtIndexPaths:withRowAnimation: with calls to -beginUpdates > and -endUpdates, while others don't. Is this bracketing necessary?
No problem, happy to help, even if you independently found the solution. As for begin/endUpdates, what these do is synchronize animations that otherwise might be performed serially. If you are updating a single row there is no reason, AFAIK, to wrap the reload message. If you are updating multiple rows (which I don't do, so this is somewhat speculative... a test program should be pretty easy to write), wrapping the reload message with begin/endUpdates will ensure that all the rows animate simultaneously. What I am unsure on is whether you need to do this if you include all the row changes in the NSArray you pass to reloadRowsAtIndexPaths. Cocoa might take care of synchronizing all animations therein for you, but I'm not sure. Certainly if you need to perform other operations (e.g. adding/deleting cells) you will need to wrap the whole block as indicated in the documentation. A thorough discussion of these matters is available in the Table View Programming Guide for iOS: http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/TableView_iPhone/ManageInsertDeleteRow/ManageInsertDeleteRow.html#//apple_ref/doc/uid/TP40007451-CH10-SW9 - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFNfn0xaOlrz5+0JdURAjtUAJ9/fABpLBsURfTCfuDCgfyC/KXE0wCfZaH9 vVjANOLeIAy02hCxpY0xbuE= =5CsV -----END PGP SIGNATURE----- _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
