iOS 7中缺少系统“tock”声音

在iOS 6中我使用了这一行:
NSString *path  = [[NSBundle bundleWithIdentifier:@"com.apple.UIKit"] pathForResource:@"Tock" ofType:@"aiff"];

获得系统tock声音的路径.一切都很好.现在,自iOS 7以来,(null)作为路径返回.

谁能告诉我tock声音发生了什么?

我已经尝试重新链接UIKit.framework库并得到了相同的结果.我几乎找不到这条线改变结果的原因.

谢谢你的帮助!

解决方法

快速研究SDK的资源,它不再存在了.
[dbarden@Daniels-MacBook-Pro-3/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs]
[16:24:03]% find . -name Tock.aiff
./iPhoneSimulator5.1.sdk/System/Library/Frameworks/UIKit.framework/Tock.aiff
./iPhoneSimulator6.0.sdk/System/Library/Frameworks/UIKit.framework/Tock.aiff
./iPhoneSimulator6.1.sdk/System/Library/Frameworks/UIKit.framework/Tock.aiff

以上是来客网为你收集整理的iOS 7中缺少系统“tock”声音全部内容,希望文章能够帮你解决iOS 7中缺少系统“tock”声音所遇到的程序开发问题。

如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。