1 2 3 4 5 |
// ここから let start = dictionary["date"] as? String //20161215の文字列が渡ってきた場合 let year = start?.substring(to: (start?.index((start?.startIndex)!, offsetBy: 4))!) let manth = start?.substring(with: (start?.index((start?.startIndex)!, offsetBy: 4))!..<(start?.index((start?.startIndex)!, offsetBy: 6))!) let day = start?.substring(from: (start?.index((start?.endIndex)!, offsetBy: -2))!) |
nilで作ってnilかどうか判定してもいいんですけど、一応生成した場合の実装をメ… Continue Reading →
swift3.0でフォントの種類を確認する // font UIFont.fam… Continue Reading →
© 2024 ゼロから始めるiPhoneアプリ制作 — Powered by WordPress
Theme by Anders Noren — Up ↑
最近のコメント