Guest User

Untitled

a guest
Jan 16th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Foo : anotherClass
  2.  
  3. <UIWebViewDelegate>
  4.  
  5. Foo : UIViewController {}
  6. - (void)customWebViewDidFinishLoad:(UIWebView *)webView;
  7.  
  8. - (void)webViewDidFinishLoad:(UIWebView *)theWebView {
  9. [self customWebViewDidFinishLoad:self.webView];
  10. }
  11.  
  12. // Override this method in Bar.m
  13. - (void)customWebViewDidFinishLoad:(UIWebView *)webView {
  14. // Default behaviour
  15. }
  16.  
  17. Bar : Foo
  18.  
  19. - (void)customWebViewDidFinishLoad:(UIWebView *)webView {
  20. [super customWebViewDidFinishLoad:webView];
  21. //Extend the behaviour here
  22. }
Add Comment
Please, Sign In to add comment