@property weak與assign的區(qū)別 weak 使用于NSObject 對象類型 assign 用于基本數據類型织盼,比如 int bool weak 用于解除相互持有對象引起的循環(huán)引用 weak 對象在引用計數為0銷毀對象時候,對象指針會被置為nil