首先,我不知道在提交我的应用程序之前如何获取链接,以及链接是针对每个国家/地区应用程序商店还是通用的?
另外我不知道这样做的方法是将链接放在那里:
@IBAction func rate(sender: AnyObject) {
UIApplication.sharedApplication().openURL(NSURL(string : "webLinkHere")!)
}
Run Code Online (Sandbox Code Playgroud)
或者我应该用另一种方式来做到这一点?
谢谢
我怎样才能在扬声器上听到与麦克风录制但现场录制的内容相同的内容?
我想做的就是戴上耳机听到同样的声音,但我只会控制音量。
我知道如何录制音频然后播放它,但我希望它是实时的,我不需要保存音频,只需同时听到相同的内容即可。
我实际上在这里找到了同样的问题但是对于obj.c所以我设法做到了这一点:
trashNavButton = UIButton.buttonWithType(UIButtonType.Custom) as! UIButton
trashNavButton.addTarget(self, action: "trashItemClicked", forControlEvents: UIControlEvents.TouchUpInside)
trashNavButton = UIButton(frame: CGRectMake(0, 0, 50, 32))
trashNavButton.setTitle("\(trashCount)", forState: UIControlState.Normal)
trashNavButton.setTitleColor(UIColor(red: 229.0/255.0, green: 57.0/255.0, blue: 53.0/255.0, alpha: 1.0), forState: UIControlState.Normal)
trashNavButton.titleLabel?.textAlignment = NSTextAlignment.Right
trashNavButton.setImage(UIImage(named: "trashButton"), forState: UIControlState.Normal)
rightBarButton.customView = trashNavButton
self.navigationItem.rightBarButtonItem = rightBarButton
Run Code Online (Sandbox Code Playgroud)
我想要做的是在导航栏的右侧有一个按钮,我希望该按钮左侧还有一个标签(你可以在我上面提到的问题上看到一个很好的例子),以及这个代码效果很好,除了图像在左边,标签在右边,我希望它是相反的方式,我将感激你的帮助:)