且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用ARC项目中的非ARC库的方法?

更新时间:2022-12-25 10:27:11

code> NSTimeZone 是一个输出参数,因此您需要传递一个指针,如下所示:

The NSTimeZone is an output parameter, so you need to pass a pointer to a pointer, like this:

NSTimeZone *theTimeZone = nil;
group.updatedAt = [formatter dateFromString:someString timeZone:&theTimeZone];

当函数返回时, theTimeZone 设置为函数的输出值。

When the function returns, theTimeZone will be set to the output value of the function.