我正在构建一个iOS应用,其中我已经实现了Fabric并使用Digits进行登录.登录成功后,会话将保持打开状态.
I'm building an iOS app in which i have implemented Fabric and using Digits for login.When login is successful session remains open.
我遇到一个问题,我想清除应用程序缓存以重置会话,以便用户可以使用新的电话号码再次登录.
I'm facing an issue i want to clear the app cache to reset the session so user can login again with a new phone number.But it is not happening.
我用于清除应用程序缓存的代码:
The code i'm using to clear the app cache:
- (void)viewDidLoad {
[super viewDidLoad];
[[NSURLCache sharedURLCache] removeAllCachedResponses];
}
我们非常感谢您的帮助!
Help is appreciated!