Modernize Freestyle Judo for latest iOS 15+/iPadOS/macOS via Catalyst (2026 update)
- Raise deployment target to iOS 15.0; enable Mac Catalyst support - Replace all UIWebView with WKWebView (programmatic creation for compat with legacy storyboards) - Fix deprecated APIs (MPMusicPlayer iPod->system, rotation method signatures, remove viewDidUnload) - Update project settings, bundle ID, AppIcon catalog, add privacy description for music - Add README with update notes and usage - Preserve original Objective-C logic, timers, scoring, sounds, and UI behavior - App builds and launches on iOS 18 simulators + Mac Catalyst
This commit is contained in:
Regular → Executable
+2
-1
@@ -7,9 +7,10 @@
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <WebKit/WebKit.h>
|
||||
|
||||
@interface BSIWebViewController : UIViewController
|
||||
@property (weak, nonatomic) IBOutlet UIWebView *webView;
|
||||
@property (strong, nonatomic) WKWebView *webView;
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIToolbar *BSIWebToolbar;
|
||||
@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton;
|
||||
|
||||
Regular → Executable
+13
-16
@@ -15,27 +15,24 @@ @implementation BSIWebViewController
|
||||
@synthesize BSIWebToolbar = _BSIWebToolbar;
|
||||
@synthesize DoneButton = _DoneButton;
|
||||
|
||||
|
||||
- (void) viewWillAppear: (BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
self.webView.scalesPageToFit = YES;
|
||||
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.binary-systems.com"]]];
|
||||
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
|
||||
if ([key isEqualToString:@"webView"]) { return; }
|
||||
[super setValue:value forUndefinedKey:key];
|
||||
}
|
||||
|
||||
|
||||
- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
|
||||
WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
|
||||
self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:config];
|
||||
self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||||
[self.view addSubview:self.webView];
|
||||
}
|
||||
|
||||
- (void) viewWillAppear: (BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.binary-systems.com"]]];
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
|
||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+1
-1
@@ -56,7 +56,7 @@ -(BOOL)shouldAutorotate
|
||||
}
|
||||
|
||||
|
||||
- (NSUInteger)supportedInterfaceOrientations
|
||||
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
|
||||
{
|
||||
return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
|
||||
}
|
||||
|
||||
Regular → Executable
Regular → Executable
+1
-1
@@ -52,7 +52,7 @@ -(BOOL)shouldAutorotate
|
||||
}
|
||||
|
||||
|
||||
- (NSUInteger)supportedInterfaceOrientations
|
||||
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
|
||||
{
|
||||
return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
|
||||
}
|
||||
|
||||
Regular → Executable
Regular → Executable
+1
-1
@@ -62,7 +62,7 @@ -(BOOL)shouldAutorotate
|
||||
}
|
||||
|
||||
|
||||
- (NSUInteger)supportedInterfaceOrientations
|
||||
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
|
||||
{
|
||||
return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
|
||||
}
|
||||
|
||||
Regular → Executable
Regular → Executable
+3
-9
@@ -207,10 +207,10 @@ - (void)viewDidLoad
|
||||
|
||||
|
||||
|
||||
_MusicPlayer = [MPMusicPlayerController iPodMusicPlayer];
|
||||
_MusicPlayer = [MPMusicPlayerController systemMusicPlayer];
|
||||
|
||||
|
||||
if (_MusicPlayer.playbackState == MPMusicPlaybackStatePlaying)
|
||||
if (_MusicPlayer && _MusicPlayer.playbackState == MPMusicPlaybackStatePlaying)
|
||||
{
|
||||
[_MusicPlayer pause];
|
||||
}
|
||||
@@ -271,12 +271,6 @@ - (void) audioPlayerDidFinishPlaying: (AVAudioPlayer *) player
|
||||
|
||||
|
||||
|
||||
- (void)viewDidUnload
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
- (BOOL) shouldAutorotate
|
||||
{
|
||||
return YES;
|
||||
@@ -284,7 +278,7 @@ - (BOOL) shouldAutorotate
|
||||
|
||||
|
||||
|
||||
- (NSUInteger)supportedInterfaceOrientations
|
||||
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
|
||||
{
|
||||
return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight;
|
||||
}
|
||||
|
||||
Regular → Executable
+2
-1
@@ -7,9 +7,10 @@
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <WebKit/WebKit.h>
|
||||
|
||||
@interface FSJWebViewController : UIViewController
|
||||
@property (weak, nonatomic) IBOutlet UIWebView *webView;
|
||||
@property (strong, nonatomic) WKWebView *webView;
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIToolbar *FSJWebToolbar;
|
||||
@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton;
|
||||
|
||||
Regular → Executable
+15
-22
@@ -16,35 +16,28 @@ @implementation FSJWebViewController
|
||||
@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;
|
||||
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
|
||||
if ([key isEqualToString:@"webView"]) {
|
||||
// Ignore legacy UIWebView connection from storyboard; we use WKWebView created in code.
|
||||
return;
|
||||
}
|
||||
return YES;
|
||||
[super setValue:value forUndefinedKey:key];
|
||||
}
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
|
||||
WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
|
||||
self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:config];
|
||||
self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||||
[self.view addSubview:self.webView];
|
||||
}
|
||||
|
||||
- (void) viewWillAppear: (BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.freestylejudo.org"]]];
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
|
||||
Regular → Executable
+9
-3
@@ -21,11 +21,11 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<string>2.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<string>2.0</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UIMainStoryboardFile</key>
|
||||
@@ -34,8 +34,14 @@
|
||||
<string>MainStoryboard_iPad</string>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>armv7</string>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>NSAppleMusicUsageDescription</key>
|
||||
<string>This app can play music from your library during matches to set the atmosphere (optional feature).</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>UIStatusBarHidden</key>
|
||||
<false/>
|
||||
<key>UIStatusBarStyle</key>
|
||||
<string>UIStatusBarStyleDefault</string>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
|
||||
Regular → Executable
Regular → Executable
+118
-64
@@ -1,104 +1,158 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "FSJ Icon 29pt 1x-1.png",
|
||||
"scale" : "1x"
|
||||
"idiom" : "iphone",
|
||||
"scale" : "1x",
|
||||
"size" : "29x29"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "FSJ Icon 29pt 2x-1.png",
|
||||
"scale" : "2x"
|
||||
"idiom" : "iphone",
|
||||
"scale" : "2x",
|
||||
"size" : "29x29"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"filename" : "FSJ Icon 29pt 2x-1.png",
|
||||
"idiom" : "iphone",
|
||||
"scale" : "3x",
|
||||
"size" : "29x29"
|
||||
},
|
||||
{
|
||||
"filename" : "FSJ Icon 40pt 2x.png",
|
||||
"scale" : "2x"
|
||||
"idiom" : "iphone",
|
||||
"scale" : "2x",
|
||||
"size" : "40x40"
|
||||
},
|
||||
{
|
||||
"size" : "57x57",
|
||||
"filename" : "FSJ Icon 40pt 2x.png",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "FSJ Icon 57pt 1x.png",
|
||||
"scale" : "1x"
|
||||
"scale" : "3x",
|
||||
"size" : "40x40"
|
||||
},
|
||||
{
|
||||
"size" : "57x57",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "FSJ Icon 57pt x2.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "60x60",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "FSJ Icon 60pt x2.png",
|
||||
"scale" : "2x"
|
||||
"idiom" : "iphone",
|
||||
"scale" : "2x",
|
||||
"size" : "60x60"
|
||||
},
|
||||
{
|
||||
"filename" : "FSJ Icon 60pt x2.png",
|
||||
"idiom" : "iphone",
|
||||
"scale" : "3x",
|
||||
"size" : "60x60"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "FSJ Icon 29pt 1x.png",
|
||||
"scale" : "1x"
|
||||
"idiom" : "ipad",
|
||||
"scale" : "1x",
|
||||
"size" : "29x29"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "FSJ Icon 29pt 2x.png",
|
||||
"scale" : "2x"
|
||||
"idiom" : "ipad",
|
||||
"scale" : "2x",
|
||||
"size" : "29x29"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "FSJ Icon 40pt 1x.png",
|
||||
"scale" : "1x"
|
||||
"idiom" : "ipad",
|
||||
"scale" : "1x",
|
||||
"size" : "40x40"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "FSJ Icon 40pt 2x-1.png",
|
||||
"scale" : "2x"
|
||||
"idiom" : "ipad",
|
||||
"scale" : "2x",
|
||||
"size" : "40x40"
|
||||
},
|
||||
{
|
||||
"size" : "50x50",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "FSJ Icon 50pt 1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "50x50",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "FSJ Icon 50pt x2.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "72x72",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "FSJ Icon 72pt 1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "72x72",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "FSJ Icon 72pt x2.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "76x76",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "FSJ Icon 76pt 1x.png",
|
||||
"scale" : "1x"
|
||||
"idiom" : "ipad",
|
||||
"scale" : "1x",
|
||||
"size" : "76x76"
|
||||
},
|
||||
{
|
||||
"size" : "76x76",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "FSJ Icon 76pt x2.png",
|
||||
"scale" : "2x"
|
||||
"idiom" : "ipad",
|
||||
"scale" : "2x",
|
||||
"size" : "76x76"
|
||||
},
|
||||
{
|
||||
"filename" : "FSJ Icon 76pt x2.png",
|
||||
"idiom" : "ipad",
|
||||
"scale" : "2x",
|
||||
"size" : "83.5x83.5"
|
||||
},
|
||||
{
|
||||
"filename" : "FSJ Icon 76pt x2.png",
|
||||
"idiom" : "ios-marketing",
|
||||
"scale" : "1x",
|
||||
"size" : "1024x1024"
|
||||
},
|
||||
{
|
||||
"filename" : "FSJ Icon 76pt x2.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "16x16"
|
||||
},
|
||||
{
|
||||
"filename" : "FSJ Icon 29pt 2x.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "16x16"
|
||||
},
|
||||
{
|
||||
"filename" : "FSJ Icon 29pt 1x.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "32x32"
|
||||
},
|
||||
{
|
||||
"filename" : "FSJ Icon 40pt 2x.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "32x32"
|
||||
},
|
||||
{
|
||||
"filename" : "FSJ Icon 40pt 1x.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "128x128"
|
||||
},
|
||||
{
|
||||
"filename" : "FSJ Icon 76pt x2.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "128x128"
|
||||
},
|
||||
{
|
||||
"filename" : "FSJ Icon 76pt x2.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "256x256"
|
||||
},
|
||||
{
|
||||
"filename" : "FSJ Icon 76pt x2.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "256x256"
|
||||
},
|
||||
{
|
||||
"filename" : "FSJ Icon 76pt x2.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "512x512"
|
||||
},
|
||||
{
|
||||
"filename" : "FSJ Icon 76pt x2.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "512x512"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
Regular → Executable
+2
-1
@@ -7,9 +7,10 @@
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <WebKit/WebKit.h>
|
||||
|
||||
@interface RulesWebViewController : UIViewController
|
||||
@property (weak, nonatomic) IBOutlet UIWebView *webView;
|
||||
@property (strong, nonatomic) WKWebView *webView;
|
||||
@property (weak, nonatomic) IBOutlet UIToolbar *HelpToolbar;
|
||||
@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton;
|
||||
@end
|
||||
|
||||
Regular → Executable
+19
-20
@@ -15,33 +15,32 @@ @implementation RulesWebViewController
|
||||
@synthesize HelpToolbar = _HelpToolbar;
|
||||
@synthesize DoneButton = _DoneButton;
|
||||
|
||||
|
||||
- (void) viewWillAppear: (BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
self.webView.scalesPageToFit = YES;
|
||||
|
||||
NSString *path = [[NSBundle mainBundle] pathForResource:@"FREESTYLE_JUDO_HANDBOOK" ofType:@"pdf"];
|
||||
NSURL *targetURL = [NSURL fileURLWithPath:path];
|
||||
NSURLRequest *request = [NSURLRequest requestWithURL:targetURL];
|
||||
|
||||
[_webView loadRequest:request];
|
||||
|
||||
[self.view addSubview:_webView];
|
||||
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
|
||||
if ([key isEqualToString:@"webView"]) {
|
||||
return;
|
||||
}
|
||||
[super setValue:value forUndefinedKey:key];
|
||||
}
|
||||
|
||||
|
||||
- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
|
||||
self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:config];
|
||||
self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||||
[self.view addSubview:self.webView];
|
||||
}
|
||||
|
||||
- (void) viewWillAppear: (BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
|
||||
NSString *path = [[NSBundle mainBundle] pathForResource:@"FREESTYLE_JUDO_HANDBOOK" ofType:@"pdf"];
|
||||
NSURL *targetURL = [NSURL fileURLWithPath:path];
|
||||
NSURLRequest *request = [NSURLRequest requestWithURL:targetURL];
|
||||
|
||||
[self.webView loadRequest:request];
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
|
||||
Regular → Executable
Regular → Executable
Regular → Executable
+2
-1
@@ -7,9 +7,10 @@
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <WebKit/WebKit.h>
|
||||
|
||||
@interface TheJudokaiChannelWebViewController : UIViewController
|
||||
@property (weak, nonatomic) IBOutlet UIWebView *webView;
|
||||
@property (strong, nonatomic) WKWebView *webView;
|
||||
@property (weak, nonatomic) IBOutlet UIToolbar *Toolbar;
|
||||
@property (weak, nonatomic) IBOutlet UIBarButtonItem *BackButton;
|
||||
@end
|
||||
|
||||
Regular → Executable
+13
-15
@@ -15,26 +15,24 @@ @implementation TheJudokaiChannelWebViewController
|
||||
@synthesize Toolbar = _Toolbar;
|
||||
@synthesize BackButton = _BackButton;
|
||||
|
||||
- (void) viewWillAppear: (BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
self.webView.scalesPageToFit = YES;
|
||||
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/user/TheJudokaiNetwork"]]];
|
||||
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
|
||||
if ([key isEqualToString:@"webView"]) { return; }
|
||||
[super setValue:value forUndefinedKey:key];
|
||||
}
|
||||
|
||||
|
||||
- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
|
||||
WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
|
||||
self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:config];
|
||||
self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||||
[self.view addSubview:self.webView];
|
||||
}
|
||||
|
||||
- (void) viewWillAppear: (BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.youtube.com/user/TheJudokaiNetwork"]]];
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
|
||||
Regular → Executable
+2
-1
@@ -7,9 +7,10 @@
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <WebKit/WebKit.h>
|
||||
|
||||
@interface TheJudokaiWebViewController : UIViewController
|
||||
@property (weak, nonatomic) IBOutlet UIWebView *webView;
|
||||
@property (strong, nonatomic) WKWebView *webView;
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIToolbar *TheJudokaiWebToolbar;
|
||||
@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton;
|
||||
|
||||
Regular → Executable
+13
-16
@@ -15,27 +15,24 @@ @implementation TheJudokaiWebViewController
|
||||
@synthesize TheJudokaiWebToolbar = _TheJudokaiWebToolbar;
|
||||
@synthesize DoneButton = _DoneButton;
|
||||
|
||||
|
||||
- (void) viewWillAppear: (BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
self.webView.scalesPageToFit = YES;
|
||||
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.judokai.net"]]];
|
||||
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
|
||||
if ([key isEqualToString:@"webView"]) { return; }
|
||||
[super setValue:value forUndefinedKey:key];
|
||||
}
|
||||
|
||||
|
||||
- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
|
||||
WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
|
||||
self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:config];
|
||||
self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||||
[self.view addSubview:self.webView];
|
||||
}
|
||||
|
||||
- (void) viewWillAppear: (BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.judokai.net"]]];
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
|
||||
Regular → Executable
+2
-1
@@ -7,9 +7,10 @@
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <WebKit/WebKit.h>
|
||||
|
||||
@interface WelcomeMatChannelWebViewController : UIViewController
|
||||
@property (weak, nonatomic) IBOutlet UIWebView *webView;
|
||||
@property (strong, nonatomic) WKWebView *webView;
|
||||
@property (weak, nonatomic) IBOutlet UIToolbar *Toolbar;
|
||||
@property (weak, nonatomic) IBOutlet UIBarButtonItem *BackButton;
|
||||
@end
|
||||
|
||||
Regular → Executable
+13
-15
@@ -15,26 +15,24 @@ @implementation WelcomeMatChannelWebViewController
|
||||
@synthesize Toolbar = _Toolbar;
|
||||
@synthesize BackButton = _BackButton;
|
||||
|
||||
- (void) viewWillAppear: (BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
self.webView.scalesPageToFit = YES;
|
||||
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/user/welcomematstevescott"]]];
|
||||
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
|
||||
if ([key isEqualToString:@"webView"]) { return; }
|
||||
[super setValue:value forUndefinedKey:key];
|
||||
}
|
||||
|
||||
|
||||
- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
|
||||
WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
|
||||
self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:config];
|
||||
self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||||
[self.view addSubview:self.webView];
|
||||
}
|
||||
|
||||
- (void) viewWillAppear: (BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.youtube.com/user/welcomematstevescott"]]];
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
|
||||
Regular → Executable
+2
-1
@@ -7,9 +7,10 @@
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <WebKit/WebKit.h>
|
||||
|
||||
@interface WelcomeMatWebViewController : UIViewController
|
||||
@property (weak, nonatomic) IBOutlet UIWebView *webView;
|
||||
@property (strong, nonatomic) WKWebView *webView;
|
||||
@property (weak, nonatomic) IBOutlet UIToolbar *WelcomeMatWebToolbar;
|
||||
@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton;
|
||||
|
||||
|
||||
Regular → Executable
+13
-17
@@ -15,28 +15,24 @@ @implementation WelcomeMatWebViewController
|
||||
@synthesize WelcomeMatWebToolbar = _WelcomeMatWebToolbar;
|
||||
@synthesize DoneButton = _DoneButton;
|
||||
|
||||
|
||||
|
||||
- (void) viewWillAppear: (BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
self.webView.scalesPageToFit = YES;
|
||||
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.welcomematjudoclub.com"]]];
|
||||
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
|
||||
if ([key isEqualToString:@"webView"]) { return; }
|
||||
[super setValue:value forUndefinedKey:key];
|
||||
}
|
||||
|
||||
|
||||
- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
|
||||
WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
|
||||
self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:config];
|
||||
self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||||
[self.view addSubview:self.webView];
|
||||
}
|
||||
|
||||
- (void) viewWillAppear: (BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.welcomematjudoclub.com"]]];
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
|
||||
Regular → Executable
Regular → Executable
Regular → Executable
Reference in New Issue
Block a user