在應用程序線程斷點,我使用的語言是斯威夫特3,我發現這個問題在第39行「斷點」線有適用於iOS
class ViewController: UIViewController {
@IBOutlet weak var NameTextLabel: UILabel!
@IBOutlet weak var ExplainTextLabel: UILabel!
@IBOutlet weak var PriceTextLabel: UILabel!
@IBOutlet weak var FeaturesTextLabel: UILabel!
let Features = ["Features Include: Siri acts as a musicologist, Advanced searches..., Works with Apple Music, etc", " Feautres Include: Up to 18 Cores, Thunderbolt 3, 5k Display, etc",
"Feautres Include: AR technology, I messages wont take up storage, A redesinged appstore, etc", "New Faces, Siri Face, Better Pairing Process"]
let Explain = ["Apple Smart Speaker", "Most Powerfull Mac", "The New OS", "Watch OS4"]
let Price = ["At $349", "At $4999", "Free", "Free"]
let Name = ["Homepod", "iMac Pro", "iOS 11", "Watch OS4"]
@IBAction func MoreDidTap(sender: AnyObject) {
let randomNumber = Int(arc4random()) % 4
let NewName = Name [randomNumber]
let NewExplain = Explain [randomNumber]
let NewPrice = Price [randomNumber]
let NewFeatures = Features [randomNumber]
NameTextLabel.text = NewName
ExplainTextLabel.text = NewExplain
PriceTextLabel.text = NewPrice
FeaturesTextLabel.text = NewFeatures (This line has a thread breakpoint can anyone help)
}
}
而你想刪除斷點?您之前是否搜索過https://stackoverflow.com/search?q=xcode+remove+breakpoint? –