我正在使用applicationMusicPlayer,当我尝试更改音量时会出现视觉通知,如图所示.这里是我使用的代码:
[MPMusicPlayerController applicationMusicPlayer] setVolume:newVolune];
Run Code Online (Sandbox Code Playgroud)
有谁知道如何隐藏此通知?

我正在使用NSInvocation并需要从中检索属性之一。
我正在使用以下代码,但我有一些奇怪的行为调用[invocation invoke];:
NSString *propertyName = nil;
[invocation getArgument:&propertyName atIndex:3];
Run Code Online (Sandbox Code Playgroud)
我读到为了使其在 ARC 下工作,我们需要使用__unsafe_unretained:
__unsafe_unretained NSString *propertyName = nil;
[invocation getArgument:&propertyName atIndex:3];
Run Code Online (Sandbox Code Playgroud)
成功了,不错!!但我想知道为什么。谁能解释一下?