IOS SWIFT 클립보드에 문자열 복사하기 또는 가져오기 (copy text to clipboard/pasteboard)
1234567891011import UIKit //문자열을 클립보드에 복사UIPasteboard.general.string = "복사를 해버렷!!!!" //클립보드에 복사된 문자열을 가져오기if let theString = UIPasteboard.general.string { print("문자를 가져와버렸!!! \(theString)")} Colored by Color Scriptercs
IOS - SWIFT
2018. 1. 4. 14:19
IOS SWIFT 커스텀 클래스 객체 소팅하기 (sort array of custom objects by property value)
1234567891011121314151617181920212223242526272829303132333435363738class User { var age:Int var level:Int var name:String init(age:Int,level:Int,name:String) { self.age = age self.level = level self.name = name }} var users = [User]() users.append(User(age: 25, level: 10, name: "김씨"))users.append(User(age: 20, level: 20, name: "이씨"))users.append(User(age: 23, level: 30, name: "박씨"))users.append(..
IOS - SWIFT
2018. 1. 4. 13:59
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday