I'm pushing a UITableViewController
onto a UINavigationController
with pushViewController:animated:
. I'd like to be notified the moment the animation finishes so I can use selectRowAtIndexPath
to scroll to and highlight a given row.
How can I set the delegate of an animation I didn't call explicitly?
相关问题
- Image loads in simulator but not device?
- UIModalTransitionStyleFlipHorizontal flips Vertica
- Xcode4 templates now use underscore on iVars?
- How can i associate an IBAction event with an imag
- ios5 background management different from ios4?
相关文章
- Xcode: Is there a way to change line spacing (UI L
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- How to get a CGImageRef from Context-Drawn Images?
- Why are my UIView layer properties not being set w
- create UIImageView
- Can I add a border to an SKSpriteNode, similar to
- textFieldDidBeginEditing: for more than one textfi
- UIView subclass draws background despite completel
I know of no way to set the delegate of the push animation. Here's a simple workaround:
Subclass
UITableViewController
. OverrideviewDidAppear:
to call your "post-animation" method after a short delay.Have you tried simply calling the selectRowAtIndexPath:animated:scrollPosition: method (via the tableView property) before you push it onto the navigation controller's stack?