为什么Xcode6.3.2编写swift源文件太慢,当我写下这段代码

时间:2015-06-17 23:28:18

标签: swift xcode6 xcode6.3.2

当我写下这些代码片段时:

import UIKit

class HomeViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {

    var homeCellArr: [Dictionary <String, String>] = [
        ["name": "eee", "pic": "newsIcon"],
        ["name": "dcd", "pic": "taskIcon"],
        ["name": "ccccc", "pic": "cardIcon"],
        ["name": "bbbb", "pic": "mailIcon"],
        ["name": "aa", "pic": "optionIcon"]
    ]
    override func viewDidLoad() {
        ......

我发现建筑和索引变得太慢了

在这个Swift文件中,CODE自动完成也慢慢变慢了

例如我写 self。 在自动完成显示之前我必须等待6s或7s

如何解决这个问题?

当我注意到这些代码时

 //       var homeCellArr: [Dictionary <String, String>] = [
 //           ["name": "eee", "pic": "newsIcon"],
 //           ["name": "dcd", "pic": "taskIcon"],
 //           ["name": "ccccc", "pic": "cardIcon"],
 //           ["name": "bbbb", "pic": "mailIcon"],
 //           ["name": "aa", "pic": "optionIcon"]
 //       ]

代码自动完成的速度变为正常

0 个答案:

没有答案