以下のコード
// textは複数行のNSStringオブジェクト
let title = text.componentsSeparatedByCharactersInSet(NSCharacterSet.newlineCharacterSet())[0]
٩(๑❛ᴗ❛๑)۶
More than 5 years have passed since last update.
以下のコード
// textは複数行のNSStringオブジェクト
let title = text.componentsSeparatedByCharactersInSet(NSCharacterSet.newlineCharacterSet())[0]
٩(๑❛ᴗ❛๑)۶
Register as a new user and use Qiita more conveniently