草庐IT

custom-authentication

全部标签

ios - 让 VoiceOver 说 "Swipe Up or Down to Select a Custom Action, then double tap to activate"

我有一个UITextView,里面有两个不同的超链接。为了在VoiceOver打开时有机会在两个链接之间进行选择,我做了:classMyTextView{overridefuncawakeFromNib(){super.awakeFromNib()letstr="xxxxxxOption1yyyyOption2"letattrStr=NSMutableAttributedString(str)letrangeOption1=(strasNSString).range(of:"Option1")letrangeOption2=(strasNSString).range(of:"Optio

第一次链接Neo4j Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication

Neo.ClientError.Security.Unauthorized:Theclientisunauthorizedduetoauthenticationfailure.正常启动成功的话就是这样的之后拿ip:http://192.168.238.128:7474/browser/登录就可以了但是我的初始用户名密码:默认的账号是neo4j密码neo4j之后是改密码但是我直接登录不上去:进入neo4j的config目录,vine04j.confg/dbms.secur#查找这句话把这个注释掉之后重启服务:ps-ef|grepneo4jkill-92892#在bin目录下重启…/bin/neo

uitableview - 'NSInvalidArgumentException',原因 : '-[UIImageView _isResizable] Exception with custom tableview cell

我在执行自定义单元格时收到NSInvalidArgumentException。调试器错误日志:2014-12-2521:39:11.397Codebuddies[24159:11353215]***由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[UIImageView_isResizable]:无法识别的选择器发送到实例0x7fa5f580b6a0”`相关的swift代码块:让cell=tableView.dequeueReusableCellWithIdentifier("Cell",forIndexPath:indexPath)

authentication - 使用 swift 验证 GameKit 本地播放器

我希望将游戏迁移到swift,我遇到的唯一麻烦是block/关闭。这是我不明白的语法,而在ObjectiveC中我会使用:GKLocalPlayer*localPlayer=[GKLocalPlayerlocalPlayer];localPlayer.authenticateHandler=^(UIViewController*viewController,NSError*error){if(viewController!=nil){[selfpresentViewController:viewControlleranimated:YEScompletion:nil];}}等等等等。但

ios - 用户通知 : Custom Vibration pattern

是否可以为用户通知警报创建自定义振动模式?例如,我们可以为用户通知选择不同的音频。是否也可以有自定义振动模式?我的意思是在iOS上使用swift以编程方式执行此操作。 最佳答案 用于在iOS中创建自定义振动。使用AudioServicesPlaySystemSoundWithVibration和AudioServicesStopSystemSound。心跳振动示例NSMutableDictionary*pulsePatternsDict=[@{}mutableCopy];NSMutableArray*pulsePatternsArr

authentication - 使用 Swift 进行游戏中心身份验证

使用以下代码,GKLocalPlayer().authenticated变量始终为false。一旦代码运行到“Userstillnotauthenticated”,您就可以下载GameCenter数据。这是错误还是以下代码的问题?funcnotificationReceived(){println("GKPlayerAuthenticationDidChangeNotificationName-AuthenticationStatus:\(self.localPlayer.authenticated)")}//MARK:2AuthenticatethePlayerfuncauthent

ios - 为非用户对象保存获取 "User cannot be saved unless they have been authenticated via logIn or signUp"

这太奇怪了。昨晚开始出现,今天早上消失了,现在又出现了。我正在尝试将当前用户保存为关注者,将另一个用户保存为关注对象。代码是:letfollow=PFObject(className:"Follow")follow["follower"]=PFUser.currentUser()follow["following"]=["__type":"Pointer","className":"_User","objectId":objectId]follow.saveInBackgroundWithBlock{(success,error)->Voidiniferror!=nil{print(e

ios - Metal Custom CIFilter 不同的返回值

我正在编写CIFilter,但结果像素颜色与Metal函数的返回值不同。内核Metal#includeextern"C"{namespacecoreimage{float4foo(sample_trgb){returnfloat4(0.3f,0.5f,0.7f,1.0f);}}Metal过滤器.swiftimportCoreImageclassMetalFilter:CIFilter{privateletkernel:CIColorKernelvarinputImage:CIImage?overrideinit(){leturl=Bundle.main.url(forResource:

ios - Swift - 使用未声明的类型 'GTMOAuth2Authentication'

我正在将一个应用程序从Obj-C切换到Swift,并在其中实现了Google+登录。我有GoogleOpenSource.framework和GooglePlus.framework在我的项目中,以及桥接header中的以下几行:#import#import不幸的是,我仍然收到错误Useofundeclaredtype'GTMOAuth2Authentication'尝试实现-(void)finishedWithAuth:(GTMOAuth2Authentication*)autherror:(NSError*)error时在GPPSignInDelegate上.我使用的是G+SDK1

ios - MVC : Where do I place custom UICollectionCell

我是移动领域开发的新手,我对我的项目有一个架构问题:自定义UICollectionViewCell的正确位置在哪里?本能地,我会把它放在(V)view下。编辑我会这样使用它:funccollectionView(collectionView:UICollectionView,cellForItemAtIndexPathindexPath:NSIndexPath)->UICollectionViewCell{varcustomCell:CustomCell=collectionView.dequeueReusableCellWithReuseIdentifier(CustomCell.i