First commit of Freestyle Judo 1.0

This commit is contained in:
2013-10-25 14:14:52 -05:00
commit 9ce3030753
88 changed files with 5974 additions and 0 deletions
+85
View File
@@ -0,0 +1,85 @@
//
// FSJWebViewController.m
// Freestyle Judo
//
// Created by Vincente D'Ingianni on 10/6/13.
// Copyright (c) 2013 Binary Systems, Inc. All rights reserved.
//
#import "FSJWebViewController.h"
@implementation FSJWebViewController
@synthesize webView = _webView;
@synthesize FSJWebToolbar = _FSJWebToolbar;
@synthesize DoneButton = _DoneButton;
- (void) viewWillAppear: (BOOL)animated
{
[super viewWillAppear:animated];
self.webView.scalesPageToFit = YES;
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.freestylejudo.org"]]];
}
- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
{
return YES;
}
- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request
navigationType:(UIWebViewNavigationType)navigationType {
if (request.URL == [NSURL URLWithString:@"http://www.freestylejudo.org"]) {
//do close window magic here!!
return NO;
}
return YES;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)done:(UIBarButtonItem *)sender {
[self dismissViewControllerAnimated:YES completion:nil];
}
//@implementation FSJWebViewController
//
//- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
//{
// self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
// if (self) {
// // Custom initialization
// }
// return self;
//}
//
//- (void)viewDidLoad
//{
// [super viewDidLoad];
// // Do any additional setup after loading the view.
//}
//
//- (void)didReceiveMemoryWarning
//{
// [super didReceiveMemoryWarning];
// // Dispose of any resources that can be recreated.
//}
@end