当我写下这些代码片段时:
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"]
// ]
代码自动完成的速度变为正常