I’m trying to animate a UITableView and running into difficulties. I have loaded the table using custom cells, and I need to get that table’s elements again, and move the content of that row downwards in an animation.
While I perform this, I can get only the entire table from the UIView. Actually I want to get the custom table cell content from the table and perform the animation on that.
I’m struggling with:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UILabel *temp=[[UILabel alloc]init];
temp.text=nil;
UIView *anim = nil;
id currentObject;
for (UIView *theview in destination.superview.subviews)
{
if ([theview isKindOfClass:[UITableView class]])
{
NSLog(@"%@",theview);
UIView *vi= theview;//(UITableView *)[UITableView class];
NSLog(@"%@",vi);
for(UIView *vi1 in vi.superview.subviews )
{
if ([vi1 isKindOfClass:[UITableViewCell class]])
{
NSLog(@"%@",vi1);
}
anim = theview;
break;
}
}
}
How do I get the data from that?
now i am just created the custom UILable and assigned my cell text to it and then animated that….
here is the code…
in the table viewDidSelect method i coded this….
and i having the separate animate function just i called that…