In mail.app on the iPhone, a summary of each email is displayed in a UITableView
. When the user swipes across a row, the label is resized to accommodate the delete button, and the text is re-wrapped (in a smaller space, the line break can move).
I have figured out how to update the width of the label such that the text re-wraps. But you will also notice that Apple use a neat little fading animation on the label's text as it re-aligns. How can I achieve something similar?
I have attempted to manipulate the alpha for the label in willTransitionToState
and didTransitionToState
but I can't quite get it to work.