




























使用了LLVM以后,终于可以定义私有的成员变量了。
@interface RadioViewController ()
{
@private
UIBackgroundTaskIdentifier task;
}
@property (strong, nonatomic) AVPlayer *audioPlayer;
@end
请注意,在m文件的categories需要使用花括号({})@property还是需要定义在花括号的外面。
这样在
@implementation RadioViewController
@end
中间就可以自由的使用这个成员变量(field)task了。
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。