2401e381d5
- 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
79 lines
2.0 KiB
Objective-C
Executable File
79 lines
2.0 KiB
Objective-C
Executable File
//
|
|
// 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)setValue:(id)value forUndefinedKey:(NSString *)key {
|
|
if ([key isEqualToString:@"webView"]) {
|
|
// Ignore legacy UIWebView connection from storyboard; we use WKWebView created in code.
|
|
return;
|
|
}
|
|
[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
|
|
{
|
|
[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
|