Permalink
Browse files

footer toggle

  • Loading branch information...
schacon committed May 6, 2010
1 parent b32fe8e commit 45dd34b2e8e2cfac99ab02b6dd97d3d258ab6530
Showing with 267 additions and 68 deletions.
  1. +7 −4 Classes/ShowOffPadViewController.h
  2. +6 −4 Classes/ShowOffPadViewController.m
  3. +254 −60 ShowOffPadViewController.xib
@@ -9,20 +9,23 @@
#import <UIKit/UIKit.h>
@interface ShowOffPadViewController : UIViewController {
- IBOutlet UIWebView *webDisplayiPad;
- UIButton *nextButton;
- UIButton *prevButton;
- UILabel *notesArea;
+ IBOutlet UIWebView *webDisplayiPad;
+ UIButton *nextButton;
+ UIButton *prevButton;
+ UIButton *footerButton;
+ UILabel *notesArea;
}
@property(nonatomic,retain) UIWebView *webDisplayiPad;
@property (nonatomic, retain) IBOutlet UIButton *nextButton;
@property (nonatomic, retain) IBOutlet UIButton *prevButton;
+@property (nonatomic, retain) IBOutlet UIButton *footerButton;
@property (nonatomic, retain) IBOutlet UILabel *notesArea;
- (IBAction)doNextButton;
- (IBAction)doPrevButton;
+- (IBAction)doFooterButton;
@end
@@ -11,7 +11,7 @@
@implementation ShowOffPadViewController
@synthesize webDisplayiPad;
-@synthesize nextButton, prevButton, notesArea;
+@synthesize nextButton, prevButton, footerButton, notesArea;
- (IBAction) doNextButton {
NSLog(@"NEXT");
@@ -21,9 +21,11 @@ - (IBAction) doNextButton {
}
- (IBAction) doPrevButton {
- NSLog(@"PREV");
- NSString *output = [webDisplayiPad stringByEvaluatingJavaScriptFromString:@"prevStep()"];
- NSLog(@"OUT :%@", output);
+ [webDisplayiPad stringByEvaluatingJavaScriptFromString:@"prevStep()"];
+}
+
+- (IBAction) doFooterButton {
+ [webDisplayiPad stringByEvaluatingJavaScriptFromString:@"toggleFooter()"];
}
Oops, something went wrong.

0 comments on commit 45dd34b

Please sign in to comment.