PSURLManager

From iPhone Development Wiki
Revision as of 22:36, 5 May 2020 by Shepgoba (talk | contribs) (Created page with "PSURLManager is the class that manages and processes Preferences URLs. It has been available since iOS 13.0. == Jumping to a Preferences URL within the Settings app == <sourc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

PSURLManager is the class that manages and processes Preferences URLs. It has been available since iOS 13.0.

Jumping to a Preferences URL within the Settings app

NSURL *exampleURL = [NSURL URLWithString:@"prefs:root=APPLE_ACCOUNT"];
[[objc_getClass("PSURLManager") sharedManager] processURL:exampleURL animated: YES fromSearch:NO withCompletion:nil];