File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,14 @@ Certainly, here’s a concise comparison:
96
96
| ** Use Case** | For screens/pages | For UI components or subviews |
97
97
98
98
In short, ` UIViewController ` handles the logic and flow of a screen, while ` UIView ` manages rendering and interaction for individual components.
99
+ 4 . ** What are ` strong ` , ` weak ` , ` assign ` , and ` copy ` attributes?**
100
+
101
+ | Attribute | Reference Type | Memory Management | Common Use Cases |
102
+ | -----------| ----------------| -------------------| ----------------------------|
103
+ | ` strong ` | Object | Retains the object | Managing object lifecycle |
104
+ | ` weak ` | Object | No ownership | Avoiding retain cycles |
105
+ | ` assign ` | Primitive | No memory management | Primitive types |
106
+ | ` copy ` | Object | Creates a copy | Strings and mutable objects |
99
107
100
108
101
109
# Architecture
You can’t perform that action at this time.
0 commit comments