iOS/Swift

· iOS/Swift
Choosing Between Structures and Classes? Apple 공식 문서 https://developer.apple.com/documentation/swift/choosing-between-structures-and-classes Choosing Between Structures and Classes | Apple Developer Documentation Decide how to store data and model behavior. developer.apple.com 디폴트로 Structures를 선택하자! 1. 구조체(struct)를 사용하는 경우 간단한 데이터를 담는데 사용합니다. 값을 복사해서 사용하고 싶을 때 사용합니다. 다른 타입을 상속받거나 확장할 필요가 없을 때 사용..
yeridev
'iOS/Swift' 카테고리의 글 목록