草庐IT

USER_INFO

全部标签

ios - Swift 3 Firebase : current user login success, 事件已在 Firebase 控制台中删除此用户

在登录表单中通过代码成功创建Firebase用户后。我在Firebase控制台中删除了这个新用户,退出了应用程序。再次打开应用程序时,它仍然提示登录成功,用户已被管理员删除。这是为什么,如何在登录表单中知道用户已删除?引用我下面的登录表单代码:overridefuncviewDidLoad(){super.viewDidLoad()//getthecurrentuserisbysettingalistenerontheAuthobject:FIRAuth.auth()!.addStateDidChangeListener(){auth,userinifuser!=nil{//Useri

swift - Info.plist 中缺少 NSLocationWhenInUseUsageDesciption

下午好,在过去的几周里,我在Xcode中遇到了一个问题:Thisapphasattemptedtoaccessprivacy-sensitivedatawithoutausagedescription.Theapp'sInfo.plistmustcontainboth“NSLocationAlwaysAndWhenInUseUsageDescription”and“NSLocationWhenInUseUsageDescription”keyswithstringvaluesexplainingtotheuserhowtheappusesthisdata我在我的info-plist中实

ios - 带有 qos_class_user_interactive 的 global_queue

我试图理解GCD并编写了这段代码来找出运行优先级:overridefuncviewDidLoad(){super.viewDidLoad()fetchImage()print(1)dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED,0)){print(2)}dispatch_async(dispatch_get_main_queue()){print(3)}dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INTERACTIVE,0)){prin

ios - 无法在 info.plist 中添加 "Privacy - Location Always and When in use usage description"- Xcode 9 Beta

在Xcode9Beta中尝试向用户请求位置许可时出现以下错误。我尝试在info.plist中添加"Privacy-LocationWhenInUseUsageDescription"和"Privacy-LocationUsageDescription"描述,但仍然出现相同的错误。Thisapphasattemptedtoaccessprivacy-sensitivedatawithoutausagedescription.Theapp'sInfo.plistmustcontainbothNSLocationAlwaysAndWhenInUseUsageDescriptionandNSL

swift - 应用程序的 Info.plist 必须包含一个 NSLocationWhenInUseUsageDescription 键和一个字符串值,向用户解释应用程序如何使用此数据

我是IOS新手。我正在尝试使用map来获取用户的当前位置。我正在学习的教程适用于IOS10。我仔细阅读了这篇文章并做了它所说的一切,但仍然不起作用LocationServicesnotworkinginiOS11以下是我的代码classViewController:UIViewController,CLLocationManagerDelegate,MKMapViewDelegate{varlocationManager=CLLocationManager()//@IBOutletweakvarmapView:MKMapView!@IBOutletweakvarmapView:MKMa

swift - AlamofireObjectMapper 无法使用类型为 'responseObject' 的参数列表调用 '((User?, NSError?) -> _)'

我在swift中使用AlamofireObjectMapper框架,如https://github.com/tristanhimmelman/AlamofireObjectMapper中所述我想将“responseObject”与自定义类一起使用,但它不起作用:代码:letURL="http://37.187.145.241:8080/MasterMarket/api/users-maxou/2"Alamofire.request(.GET,URL,parameters:nil).responseObject{(response:User?,error:NSError?)inprint

ios - 解析 : Facebook user unlink and login again creates two user table entries

我看到我通过Facebook代码解析登录看起来像这样。PFFacebookUtils.logInInBackgroundWithReadPermissions(permissions){(user:PFUser?,error:NSError?)->Voidinifletuser=user{ifuser.isNew{println("UsersignedupandloggedinthroughFacebook!")letgraphRequest:FBSDKGraphRequest=FBSDKGraphRequest(graphPath:"me",parameters:nil)graphR

ios - 异常类型 : SIGTRAP for one user

我不断收到单个测试用户针对带有header的Swift项目的崩溃日志:ExceptionType:SIGTRAP这是崩溃日志的完整相关部分:HardwareModel:iPad4,2Process:JamSession[204]Path:/var/mobile/Containers/Bundle/Application/FADFF299-ABDC-46AA-8B77-BF4F77301DBF/JamSession.app/JamSessionIdentifier:it.info.music.jamsessionVersion:1.0(1.0.8)CodeType:ARM-64Paren

swift - Firebase 离线支持 : upload posts while user is offline and sync when user comes online in iOS Swift app

我在一个iOS-Swift项目中使用firebase,在这个项目中我必须为上传帖子启用离线支持,在帖子中有一张图片和标题就像Instagram,所以我想要的是当用户离线并且他/她想上传一个帖子,他/她的照片被保存在缓存中,当用户上线时,照片被上传并返回一个下载url,我们可以用它来保存帖子——在数据库中保存它的详细信息。示例代码是:letphotoIDString=UUID().uuidStringletstorageRef=Storage.storage().reference(forURL:"storagerefURL").child("posts").child(photoIDS

swift - iOS Today Extension 可以从应用程序的 Info.plist 中读取 URL 方案吗

我们有我们的应用程序目标,并且在该Info.plist中,我们定义了可用于使用URL打开应用程序的URL方案。现在我们要添加今天的扩展。我们希望有一个TableView,它将从扩展程序中打开该URL。我们会看到API是如何支持它的。我们能否从应用程序的Info.plist中获取URL方案,或者我们是否基本上“硬编码”扩展中的值以调用它打开? 最佳答案 要获取infos.plist值,您可以使用:leturlTypesArray=NSBundle.mainBundle().objectForInfoDictionaryKey("CFB