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:
2026-06-11 13:59:30 -05:00
parent 03921e94d7
commit 2401e381d5
34 changed files with 319 additions and 223 deletions
+19 -20
View File
@@ -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