티스토리 뷰

Swift & objc

objective c properties attribute

rhinoPHS 2019. 4. 27. 16:16

Attribute 1. class

스위프트의 타입프로퍼티와 같은 개념

https://useyourloaf.com/blog/objective-c-class-properties/


Attribute 2. nullable

https://useyourloaf.com/blog/using-nullable-to-annotate-objective-c/


Attribute 3. Automicity

Attribute 4. read/write

Attribute 5. Memory-Management

Attribute 6. Method Names



https://www.slideshare.net/donggyupark2/i-os-21207633


https://academy.realm.io/posts/tmi-objective-c-property-attributes/


https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html


https://developer.apple.com/library/archive/releasenotes/ObjectiveC/ModernizationObjC/AdoptingModernObjective-C/AdoptingModernObjective-C.html


https://stackoverflow.com/questions/588866/whats-the-difference-between-the-atomic-and-nonatomic-attributes/589392#589392


https://www.ios-blog.com/tutorials/objective-c/objective-c-property-attribute-reference-guide/


https://soooprmx.com/archives/4449



Atomicity - atomic(default) / nonatomic

Access - readonly / readwrite(default)

Storage - strong(default, formerly retain) / weak / assign / copy



https://wingsnote.com/31

Objective C, @synthesize 사용... 이제는 쓰지 않아도 돼요!



Atomicity - atomic(default) / nonatomic

Access - readonly / readwrite(default)

Storage - strong(default, formerly retain) / weak / assign / copy





반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함