Permalink
Browse files

Added a "transitionEnded" method for the delegate

  • Loading branch information...
1 parent d7e7229 commit 76343e0d08a4f479e722cf6f47d6375ced289f5e Edward Patel committed Mar 5, 2010
Showing with 13 additions and 0 deletions.
  1. +7 −0 src/DemoTransition.m
  2. +3 −0 src/EPGLTransitionView.h
  3. +3 −0 src/EPGLTransitionView.m
View
@@ -152,4 +152,11 @@ - (BOOL)drawTransitionFrameWithTextureFrom:(GLuint)textureFromView
return !allAreGone;
}
+#if 0
+- (void)transitionEnded
+{
+ NSLog(@"transitionEnded");
+}
+#endif
+
@end
View
@@ -38,6 +38,9 @@
// return NO to end transition
- (BOOL)drawTransitionFrameWithTextureFrom:(GLuint)textureFromView
textureTo:(GLuint)textureToView;
+
+@optional
+- (void)transitionEnded;
@end
@interface EPGLTransitionView : UIView
View
@@ -299,6 +299,9 @@ - (void) drawView:(id)sender
{
if ([self render] == NO) {
[self stopTransition];
+ if (delegate &&
+ [delegate respondsToSelector:@selector(transitionEnded)])
+ [delegate transitionEnded];
[self removeFromSuperview];
}
}

0 comments on commit 76343e0

Please sign in to comment.