iOS 11 Swift learning memo

文字處理

  • 字變大寫:變數.uppercased()
  • 字變小寫:變數.lowercased()
  • 計算字數:變數.characters.count
  • 數值變數轉字串:String(數值變數)
  • 字串插值(String Interpolations):例如:var totalPrice = "The price is $ \(數值變數)"

Taxonomy term