我在Xcode 7的iOS模拟器上测试我的应用程序和它可以o,但是当我在我的iOSDevice(带有iOS 9的iPhone 5S)中尝试测试时.我今天(2015年9月16日)更新了xcode 7和iOS9,之前iOS 8.4工作正常.
OBS:Xcode项目的iOS部署目标是iOS 9.
我已经尝试过这个:http: //twobitlabs.com/2011/06/adding-ocunit-to-an-existing-ios-project-with-xcode-4/喜欢这篇文章: clang:error:linker命令失败使用退出代码1(使用-v查看调用)在xcode上进行单元测试但不起作用.
这篇文章的人刚刚创建了一个新项目: xCode 7:链接器命令失败,退出代码为1(使用-v查看调用)但是对我来说不是解决方案,因为我的项目很大.
标签标题对齐是左边的,但我希望居中.我的约束是什么问题?
func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView?
{
    var title: UILabel = UILabel()
    title.text = sectionsArray[section]
    title.textColor = UIColor(red: 77.0/255.0, green: 98.0/255.0, blue: 130.0/255.0, alpha: 1.0)
    title.backgroundColor = UIColor(red: 225.0/255.0, green: 243.0/255.0, blue: 251.0/255.0, alpha: 1.0)
    title.font = UIFont.boldSystemFontOfSize(10)
    var constraint = NSLayoutConstraint.constraintsWithVisualFormat("H:[label]", options: NSLayoutFormatOptions.AlignAllCenterX, metrics: nil, views: ["label": title])
    title.addConstraints(constraint)
    return title
}
Run Code Online (Sandbox Code Playgroud)