草庐IT

login_context

全部标签

ios - 无法获得 https ://www. googleapis.com/auth/plus.login 范围权限的授权成功

我可以在我的iOS应用程序中登录Google+。为此,我正在使用GoogleOAuth类。但问题是我无法设置范围https://www.googleapis.com/auth/plus.login获得许可。如果我尝试设置此范围,则无法获得授权成功。否则,如果我不请求此范围的许可,我就会成功。但是为了获取集合信息,我需要这个范围的权限。如果有人知道这个问题,请帮助我。 最佳答案 希望对你有帮助:获取对GPPSignIn共享实例的引用:GPPSignIn*signIn=[GPPSignInsharedInstance];设置您要请求的O

ios - com.facebook.sdk.login Code=308 "(null) on iOS10

在我的一个项目中,我实现了FB登录,它在iOS9之前工作正常,但在iOS10中显示错误:-com.facebook.sdk.loginCode=308"(null)这个错误可能是什么原因。谁能帮我解决这个问题。提前致谢。 最佳答案 在IOS10中,钥匙串(keychain)改变了某些东西(不知Prop体是什么)。要解决此问题,请导航至Targets->Capabilities并启用钥匙串(keychain)共享。 关于ios-com.facebook.sdk.loginCode=308"

ios - 模态呈现样式 "over current context"和 "over fullscreen"有什么区别?

我想知道当前上下文和全屏的区别是什么?当我在它们之间切换时,我的应用程序没有任何变化。所有的动画看起来都一样等等。 最佳答案 如果您从已经处于全屏模式的ViewController中呈现ViewController,则没有任何视觉差异。但是,如果呈现ViewController未处于全屏模式,当前上下文将有所不同。例如:左:在当前ViewController未处于全屏模式之前中间:以全屏呈现一个新的ViewController右:呈现一个具有当前上下文的新ViewController可用的不同演示模式比较的完整列表hereonGit

ios - 核心数据 : parent context blocks child

我正在使用核心数据在应用程序中进行一些后台处理。后台处理是在子managedObjectContext上完成的。上下文初始化:appDelegate=UIApplication.sharedApplication().delegateas!AppDelegate//themocinappDelegateiscreatedwith.MainQueueConcurrencyTypemainThreadMOC=appDelegate.managedObjectContext!backgroundMOC=NSManagedObjectContext(concurrencyType:NSMana

ios - CoreData 嵌套上下文 : what is the proper way to save context?

我正在使用嵌套上下文模式来支持CoreData的多线程工作。我有CoredDataManager单例类,上下文的初始化是:self.masterContext=[[NSManagedObjectContextalloc]initWithConcurrencyType:NSPrivateQueueConcurrencyType];self.masterContext.persistentStoreCoordinator=self.persistentStoreCoordinator;self.mainContext=[[NSManagedObjectContextalloc]initWi

iOS 解析 SDK : How to check if login is from Facebook or Twitter?

我有一个允许用户登录Facebook或Twitter的应用程序。有一个-(void)logInViewController:(PFLogInViewController)logInControllerdidLogInUser:(PFUser)user管理从PFLogInViewController登录的方法。如何检查用户是否按下了Facebook登录按钮或Twitter登录按钮?我的应用程序中有一些功能需要根据登录类型进行不同的设置。 最佳答案 在logInViewController:didLogInUser:中……检查一下BOO

android - java.lang.NoSuchMethodError : No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)

将我的AndroidStudio更新到3.0后,我收到NostaticmethodgetFont()错误。我正在从事的项目在github上,https://github.com/ik024/GithubBrowser//Top-levelbuildfilewhereyoucanaddconfigurationoptionscommontoallsub-projects/modules.buildscript{repositories{jcenter()maven{url"https://oss.sonatype.org/content/repositories/snapshots"}}

android - java.lang.NoSuchMethodError : No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)

将我的AndroidStudio更新到3.0后,我收到NostaticmethodgetFont()错误。我正在从事的项目在github上,https://github.com/ik024/GithubBrowser//Top-levelbuildfilewhereyoucanaddconfigurationoptionscommontoallsub-projects/modules.buildscript{repositories{jcenter()maven{url"https://oss.sonatype.org/content/repositories/snapshots"}}

iOS 11 [MediaRemote] [AVOutputContext] 警告 : AVF context unavailable for MRAVOutputContextCreateIndependentRoutingContext

我在iOS应用程序中使用视频播放器(框架MediaPlayer)。如果我将设备旋转为横向,视频不会旋转为横向。仅在iOS11上没有视频旋转。iOS9、10-旋转良好。在启动视频播放器之前和设备旋转时,XCode收到消息:[MediaRemote][AVOutputContext]WARNING:AVFcontextunavailableforMRAVOutputContextCreateIndependentRoutingContext旋转视频怎么办? 最佳答案 当我删除所有断点后,我的问题就解决了。也许您可以尝试一下,希望它也能为

ios - 核心数据 : Parent context and change propagation

我的应用程序中有以下核心数据设置:PersistentStoreCoordinator^BackgroundMOC(NSPrivateQueueConcurrencyType)^MainQueueMOC(NSMainQueueConcurrencyType)初始化代码如下:_backgroundContext=[[NSManagedObjectContextalloc]initWithConcurrencyType:NSPrivateQueueConcurrencyType];[_backgroundContextsetPersistentStoreCoordinator:self.c