swift -> solve the problem of slow display of code prompts

 

 

** It should be a BUG problem, as follows

let search_bar_box = UIView(frame: CGRect(x: 10, y: 10, width: screenWidth-boxMargin*2-10*2, height: 80-10*2));

 

If changed to

 

let search_bar_box = UIView(frame: CGRect(x: 10, y: 10, width: 80, height: 60));

 

Alternatively, define width and height as variables first 

let width = screenWidth-boxMargin*2-10*2;
let search_bar_box = UIView(frame: CGRect(x: 10, y: 10, width: width, height: 80-10*2));

will solve the problem.  

 

 

 

 

 

 

 

Others can refer to:  http://www.cnblogs.com/markstray/p/5563131.html

 

1. cd into ~/Library/Developer/Xcode/DerivedData
2. ls
3. Find the directory used by your project (usually starts with your project name)
4. cd the directory name
5. rm -r Index delete your The index folder used by the project

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326217177&siteId=291194637