Skip to content

xzwgithub/ios_twitterSdk_NO_UIWebView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

ios_twitterSdk_NO_UIWebView

To use the twitter SDK, you need to add these codes to the applicationWillResignActive method of AppDelegate.m

The purpose is to solve the problem of iOS12 system webview is shown after confirm from the twitter app.

@property (nonatomic, assign) UIBackgroundTaskIdentifier taskIdentifier;

  • (void)applicationWillResignActive:(UIApplication *)application {

    if (self.taskIdentifier != UIBackgroundTaskInvalid) { [application endBackgroundTask:self.taskIdentifier]; self.taskIdentifier = UIBackgroundTaskInvalid; } __weak typeof(self) weakSelf = self; self.taskIdentifier = [application beginBackgroundTaskWithName:nil expirationHandler:^{ [application endBackgroundTask:weakSelf.taskIdentifier]; weakSelf.taskIdentifier = UIBackgroundTaskInvalid; }]; }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages