我有一个SKSpriteNode,其纹理分配如下:
node.texture = SKTexture(imageNamed: "Oval")
Run Code Online (Sandbox Code Playgroud)
用户可以选择此对象并将其拖动.我使用以下内容来确定何时在touchesMoved函数中选择它.
var touchedNode = allObjects.nodeAtPoint(location)
Run Code Online (Sandbox Code Playgroud)
问题是该图像文件的几乎一半表面区域是透明的.但是,nodeAtPoint会响应透明度的触摸.
有谁知道忽视透明度的方法?
我已经为外部TestFlight用户提供了一个应用程序.他们收到了电子邮件并按预期安装了应用程序.他们有版本1.0,Build 1.
但是,我现在上传了一个新版本(版本1.0,版本2).
这已得到批准.在"外部测试"页面中,我添加并选择了新版本.这个新版本现在说'测试'.
但是,之前版本的用户尚未收到任何通知,而在TestFlight应用程序中,它仍然显示Build 1.
有谁知道如何让当前用户获得新版本?我认为这将是自动的,我无法找到有关这种情况的任何信息.
对此的帮助将非常感激.
我想从iOS中的应用程序中发送短信.
在Xcode中,我做了以下事情:
在Link Binary With Library中添加了一个引用:
MessageUI.framework
Run Code Online (Sandbox Code Playgroud)
在ViewController.swift中我添加了导入:
import MessageUI
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试添加委托时......
class ViewController: UIViewController, MFMessageComposeViewControllerDelegate {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
类型'ViewController'不符合协议'MFMessageComposeViewControllerDelegate'
更新
按照安东尼奥的建议解决.我补充说:
func messageComposeViewController(controller: MFMessageComposeViewController!, didFinishWithResult result: MessageComposeResult) {
}
Run Code Online (Sandbox Code Playgroud)