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