草庐IT

apple-speech

全部标签

swift - Apple Watch 应用程序在模拟器上运行,但不在物理设备上运行

我正在开发一个相对简单的AppleWatch应用程序,它有两个界面Controller。当我部署到watch模拟器时,一切都按预期进行。但是,自从更新到Xcode7、iOS9和WatchOS2GMseed后,该应用程序不再在实体AppleWatch上运行。它将启动,显示加载屏幕约10秒,然后崩溃并在设备日志中显示以下消息:Sep1609:21:23Andrews-AppleWatchiap2d[168]:processcom.AndrewMoore.PhotoGauge.watchkitappisnowrunningtheforegroundSep1609:21:24Andrews-A

ios - 检测 Apple Watch 上的手指触摸 Action

我想检测AppleWatch上的触摸以获得触摸位置。因为我们可以通过使用以下委托(delegate)方法在iPhone应用程序上实现此行为:-(void)touchesMoved:(NSSet*)toucheswithEvent:(UIEvent*)event{//AnyLogic}-(void)touchesBegan:(NSSet*)toucheswithEvent:(UIEvent*)event{//AnyLogic}所以,我只是在WatchKit上使用了这些方法,但没有用;有什么办法可以实现这种行为?我想在WatchKit上做一些基于触摸位置的逻辑。我们将不胜感激任何工作方向。

ios - CoreLocation 线程崩溃崩溃 : com. apple.CoreLocation.ConnectionClient.0x16fcb870.events

我在我们的生产应用程序中遇到了Apple的CoreLocation线程崩溃。我无法在我的测试中重现它,也很难弄清楚它是在CoreLocation内部。目前它只发生在少数人口中,但我可以看到它正在变得越来越大。Crashed:com.apple.CoreLocation.ConnectionClient.0x16fcb870.events0CoreLocation0x2aa2db54CLClientCreateIso6709Notation+536751CoreLocation0x2aa2dc7bCLClientCreateIso6709Notation+539702CoreLocati

ios - 使用我的 ios 应用程序 iOS 9 Swift 2.2 中的指示打开 Apple map 应用程序

我一直在寻找很多教程\帮助但似乎没有找到,所以我再次来到这里....我想打开AppleMaps以获取路线并从用户当前位置导航到选定的Pin当我在我的应用程序中按下自定义leftCalloutAccessory我已经设置了按钮,但无法使该功能正常工作,所以请'如果有人可以指导我完成或帮助我使用代码,那将是救命稻草!谢谢这是我的代码:importUIKitimportMapKitimportCoreLocationclassMapViewController:UIViewController,MKMapViewDelegate,CLLocationManagerDelegate,UISea

ios - 新的 Apple Vision API VNTranslationalImageRegistrationRequest

我正在尝试玩ImageAlignmentAnalysis新VisionAPI的一部分,但我正在为VNTranslationalImageRegistrationRequest的初始化而苦苦挣扎。我的代码如下:importUIKitimportVisionclassImageTranslation{varsourceImage:UIImage!lazyvarimageTranslationRequest:VNTranslationalImageRegistrationRequest={//ThislinefailslettranslationRequest=VNTranslational

ios - 一个非常基本的 swift 应用程序无法编译(直接来自 Apple 的源代码)

我一直在学习本教程,直到代码未编译的最后一步:https://developer.apple.com/swift/blog/?id=16错误是针对行:letinputImage=CIImage(image:photoImageView.image)错误如下:Valueofoptionaltype'UIImage?'notunwrapped;didyoumeantouse'!'or'?'?这是源代码:importUIKitclassViewController:UIViewController{@IBOutletweakvarphotoImageView:UIImageView!//Cr

linux - 是否可以实现用 Apple Swift 语言编写的跨平台(在 OS X 和 Linux 上编译和运行)GUI 应用程序?

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。关闭6年前。Improvethisquestion随着Apple将Swift语言作为开源发布,现在2.2快照可以在OSX和Ubuntu64位上运行;我想问:是否可以实现一个GUI应用程序,在使用Swift语言编程的OSX和Linux上使用相同的代码编译和运行?基于Cocoa的GUI应用程序不是答案,因为Cocoa仅在OSX上受支持,因此它不会在Linux上编译。

ios - 在 Swift 中的 Apple map 上添加标记标签

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。关闭5年前。Improvethisquestion基于此,可以在iOS版Googlemap上添加标记标签/角标(Badge)-Addtextoncustommarkerongooglemapforios有谁知道如何为Applemap做这件事?我需要这样的东西:

swift - Apple 关于在 if 语句中强制展开的 Swift 文档中的错误?

我的iBookon"TheSwiftProgrammingLanguage"包含以下描述if语句中的强制展开的功能示例:letpossibleNumber="123"letconvertedNumber=possibleNumber.toInt()ifconvertedNumber{println("\(possibleNumber)hasanintegervalueof\(convertedNumber!)")}else{println("\(possibleNumber)couldnotbeconvertedtoaninteger")}//prints"123hasanintege

swift - 在制作自定义 iOS 键盘扩展时,如何创建一个与 Apple 原始退格键具有相同功能的按钮?

我正在制作一个自定义键盘,它有用于删除文本的删除按钮,其代码是:funcaddDelete(){deleteButton=UIButton.buttonWithType(.System)asUIButtondeleteButton.setTitle("Delete",forState:.Normal)deleteButton.sizeToFit()deleteButton.setTranslatesAutoresizingMaskIntoConstraints(false)deleteButton.addTarget(self,action:"didTapDelete",forCont