草庐IT

not_analyzed

全部标签

objective-c - UIDocumentInteractionController : "Open In" visible on iPhone but not on iPad - why?

出于测试目的,我编写了两个应用程序:第一个使用UIDocumentInteractionController播放MP3文件第二个除了注册文件类型“public.mp3”什么都不做如果我将应用程序部署到iPhone模拟器,我的MP3播放器应用程序会在顶部显示一个按钮“在‘MP3Test’中打开”。但是,如果我部署到iPad模拟器,则没有按钮,也没有“打开方式”菜单。这已经在iOS5上进行了测试。有人可以解释这是错误还是功能,背后的原因是什么? 最佳答案 取决于您从哪里展示它。如果您从屏幕中间或下方的某处展示它,只需从您展示的对象的框架

ios - SpriteKit crossFadeWithDuration : between scenes not working as expected

我正在尝试使用以下代码在我的sprite套件项目中的场景之间执行一个简单的交叉淡入淡出过渡:SKTransition*crossFade=[SKTransitioncrossFadeWithDuration:1.0f];[self.viewpresentScene:gametransition:crossFade];来self主场景的一个方法。这是发生了什么:游戏场景立即出现在当前场景之上。游戏场景在1秒内淡出,显示底层当前场景。游戏场景立即出现在当前场景之上。这是我期望发生的事情:游戏场景淡入当前场景我也在其他项目(如thisone)中对此进行了测试,我获得了相同的行为。过渡是否按预

ios - 调用 touchesEnded : when tapped but not swiped

我想在用户点击屏幕上的特定位置而不是在用户在屏幕上滑动时调用touchesEnded:方法。我怎样才能做到这一点?从调试来看,touchesEnded:似乎在用户点击或滑动时被调用。我想我可以添加一个局部变量来跟踪用户是否像下面那样滑动,但我认为有更强大的方法来处理这个问题:BOOLtrackSwipe=NO;//Localvariable-(void)touchesMoved:(NSSet*)toucheswithEvent:(UIEvent*)event{trackSwipe=YES;//dosomething}-(void)touchesEnded:(NSSet*)touches

ios - 面子书 ://profile/username does not work in iOS

NSString*facebookUrl=[NSStringstringWithFormat:@"http://www.facebook.com/%@",facebookUsername];NSURL*url=[NSURLURLWithString:[NSStringstringWithFormat:@"%@%@",@"fb://profile/",facebookUsername]];if([[UIApplicationsharedApplication]canOpenURL:url]){[[UIApplicationsharedApplication]openURL:url];}e

ios - 错误 : The request signature we calculated does not match the signature you provided. 检查您的 key 和签名方法

我正在尝试在iOS上执行AWS上传。我正在遍历一组AWSS3TransferManagerUploadRequest对象,并将大量不同大小的图像(1000+)上传到S3存储桶。使用:AWSS3TransferManager*transferManager=[AWSS3TransferManagerdefaultS3TransferManager];[[transferManagerupload:request]continueWithExecutor:[BFExecutormainThreadExecutor]withBlock:^id(BFTask*task){一旦我到达大约第700

ios - xctool 构建失败 : Test bundle not found under `Debug-iphonesimulator`

我在运行xctoolbuild时遇到故障。我的命令如下:xctoolcleanbuildrun-tests-only'MyAppKIFTests'-workspaceMyApp.xcworkspace/-scheme'Debug'-destination"platform=iOSSimulator,name=iPhone6,OS=latest"-sdkiphonesimulator-reporterjunit-reporterplain构建失败并出现以下错误:Failedtoquerythelistoftestcasesinthetestbundle:Testbundlenotfoun

ios - dyld : Library not loaded: @rpath/FMDB. 框架/FMDB

我正在使用Xcode7.2和swift2。部署目标是ios9.0这个问题与之前提出的许多问题类似,但我的问题并不常见,或者没有找到任何引用。我为iOS创建了一个cocoatouch框架,它具有混合代码(包括swift和objC)并且包含一些来自Cocoapods的库。(FMDB、ObjectMapper、HockeySDK)我在同一个项目中有另一个目标,它有一个示例应用程序,其中包含我的框架。现在,当我尝试在我的设备上运行它时,它会在安装后抛出这个运行时错误,dyld:Librarynotloaded:@rpath/FMDB.framework/FMDBReferencedfrom:/

ios - ld : library not found for -lFirebaseCore in Xcode react native

我根据rnfirebase的文档安装了firebase,但xcode抛出了一个错误:ld:librarynotfoundfor-lFirebaseCore我的图书馆:“react”:“16.6.3”,“nativereact”:“0.58.6”,"react-native-firebase":"^5.2.3", 最佳答案 我想通了,问题是我在安装Pod后使用了错误的文件来构建我的Reactnative应用程序。所以正确的答案是打开yourProject.xcworkspace 关于ios

javascript - React Native中 "folly/Portability.h"和 "File .../main.jsbundle does not exist"如何解决?

当我想为生产环境编译我的IOS应用程序时,出现以下错误:'folly/Portability.h'filenotfoundandecho'error:thisFile.../main.jsbundle不存在。这一定是的错误我已经在网上搜索了解决这个问题但是我无法解决这里是react-native的信息:ReactNativeEnvironmentInfo:System:OS:macOS10.14.4CPU:(4)x64Intel(R)Core(TM)i5-7360UCPU@2.30GHzMemory:38.35MB/8.00GBShell:3.2.57-/bin/bashBinarie

iOS6 崩溃 : this class is not key value coding-compliant for the key

这个问题在这里已经有了答案:Xcode-Howtofix'NSUnknownKeyException',reason:…thisclassisnotkeyvaluecoding-compliantforthekeyX"error?(78个答案)关闭7年前。我在iOS6设备而非iOS7设备上运行时发生崩溃。我有一个带有xibLanguageCell.xib的自定义UITableViewCell。它有2个标签、一个按钮和一个View。我有一个LanguageCell类,其中有4个IBOutlets:@interfaceLanguageCell:UITableViewCell@propert