gpt4 book ai didi

ios - 这是强还是弱?

转载 作者:行者123 更新时间:2023-11-28 18:29:15 26 4
gpt4 key购买 nike

假设这种情况:

__weak UIImage *image = [self calculateImage];

// a few lines later...

image = [self calculateImageUsingAnotherProcess];

假设 calculateImagecalculateImageUsingAnotherProcess 返回强引用。

好的,在第一种情况下 imageweak 但第二种情况呢? image 会保持 weak 方面吗?

最佳答案

第二个也会保持弱势。声明后不可更改。

关于ios - 这是强还是弱?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38077207/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com