This is doing my head in:-)
I have a fully functional CoreData Populated UITableView inside a UIViewController and I have successfully impl
Implement the following methods in your custom cell class.
- (void)willTransitionToState:(UITableViewCellStateMask)state
and
- (void)didTransitionToState:(UITableViewCellStateMask)state
and move your label accordingly.
It should be like
- (void)willTransitionToState:(UITableViewCellStateMask)state {
[super willTransitionToState:state];
if ((state & UITableViewCellStateShowingDeleteConfirmationMask) == UITableViewCellStateShowingDeleteConfirmationMask) {
label.frame = ...
}
}
Edit:
- (void)willTransitionToState:(UITableViewCellStateMask)state {
[super willTransitionToState:state];
// label.hidden = YES;
// label.alpha = 0.0;
}
- (void)didTransitionToState:(UITableViewCellStateMask)state {
[super didTransitionToState:state];
if (state == UITableViewCellStateShowingDeleteConfirmationMask) {
[UIView beginAnimations:@"anim" context:nil];
label.frame = leftFrame;
[UIView commitAnimations];
} else if (state == UITableViewCellStateDefaultMask) {
[UIView beginAnimations:@"anim" context:nil];
label.frame = rightFrame;
[UIView commitAnimations];
}
}