let data = ["Data1","Data2","Data3","Data4","Data5"];
for (index,item) in data.enumerated() {
print(index)
}
場景:遍歷data數(shù)組,index大于2時(shí)進(jìn)入斷點(diǎn),其余情況不進(jìn)入
解決:條件斷點(diǎn)
let data = ["Data1","Data2","Data3","Data4","Data5"];
for (index,item) in data.enumerated() {
print(index)
}
場景:遍歷data數(shù)組,index大于2時(shí)進(jìn)入斷點(diǎn),其余情況不進(jìn)入
解決:條件斷點(diǎn)