Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-29-2010, 10:24 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 13
Missing.Matter is on a distinguished road
Default iOS 3.2 breaks UITableView update animations

I'm trying to make a simple accordion-style menu system for iPad using a UITableView and expanding rows.

The way I implement this is storing the selected index path, and in heightForRowAtIndexPath: conditionally setting the row with that index to be larger. In didSelectRowAtIndexPath: I provide an empty update block so that the table will animate to the new row height.

This works great in iOS 3.1.3 and below. If I tap on a cell, the rows animate as expected.

However, if I build the same project in iOS 3.2, the animation is not what I want; instead of sliding, the row separators snap to their new location and then the rest of the cell follows. I haven't checked to see if this behavior is present in iOS 4.0.

I've attached a small example project to better illustrate what I'm talking about.

Is there another way to implement this behavior or a different way to animate the height changes? Is this really a problem or am I doing something wrong in my implementation?

Any thoughts are appreciated.


AccordionSlider.zip
Missing.Matter is offline   Reply With Quote
Old 07-01-2010, 08:37 AM   #2 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 13
Missing.Matter is on a distinguished road
Default

I haven't found an answer to this question, but I ended up just animating the table view with a timer. The effect is the same, but the implementation isn't as elegant as before.
Missing.Matter is offline   Reply With Quote
Reply

Bookmarks

Tags
3.2, accordion, animations, uitableview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 326
7 members and 319 guests
anothermine, Chickenrig, Domele, givensur, michaelhansen, PixelInteractive, Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,892
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:22 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0