源碼:
https://github.com/ThirdPrince/ios_value_transfer/tree/master
https://github.com/ThirdPrince/ios_value_transfer/tree/master
2021-08-11
源碼demo:
https://github.com/ThirdPrince/ios_value_transfer/tree/master
https://github.com/ThirdPrince/ios_value_transfer/tree/master
2021-08-11
最新回答 / 慕碼人0225831
你寫(xiě)的這兩行代碼本質(zhì)上是一樣的,等號(hào)賦值在運(yùn)算的時(shí)候也會(huì)轉(zhuǎn)化為set方法
2020-03-31
為什么我的從頁(yè)面1跳轉(zhuǎn)到頁(yè)面2,頁(yè)面1還保留呢?同時(shí)顯示的,這怎么搞...
2020-02-17
這個(gè)單例 寫(xiě)錯(cuò)了 我試過(guò)了 不能這么寫(xiě) 單例的格式
+ (instancetype)sharedInstance {
static <#arguments#> * _sharedInstance = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_sharedInstance = [[<#arguments#> alloc] init];
});
return _sharedInstance;
}
+ (instancetype)sharedInstance {
static <#arguments#> * _sharedInstance = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_sharedInstance = [[<#arguments#> alloc] init];
});
return _sharedInstance;
}