【发布时间】:2010-09-20 08:27:49
【问题描述】:
我已将我的第一个 iPhone 应用程序提交到 AppStore(10 年 9 月 10 日),我刚刚发现它“准备出售”(18 年 9 月 10 日)。在短暂的快乐之后,我发现了我的应用程序中的一些问题,而当我使用 XCode 在我的 iPhone 上安装它时没有这些问题:
1) 我的 APP 使用 CLLocationManager 来获取 GPS 坐标。我已经对其进行了测试并且效果很好,但是从 AppStore 下载我的应用程序后,我注意到我的应用程序没有得到任何坐标。通常,在我的 iPhone 上安装一个需要获取 GPS 坐标的新应用程序后,iOS 会询问我是否要允许该应用程序这样做,但对于我的应用程序,iOS 不会问我这个问题.我错过了什么吗? P.S.:当我将我的应用程序提交给审核流程时,我没有选择表明我的应用程序“需要位置服务”的选项(我的 Info.plist 中的 UIRequiredDeviceCapabilities)。你认为这是一个错误吗?
2) 我有一些“布尔按钮”。当用户点击按钮时,它会发出声音。但在 AppStore 版本中,它不会发出任何声音(甚至无法听到选取器在拍照时发出的声音)。这是我的方法:
- (void) playMCSound:(BOOL)release {
//Get the filename of the sound file:
NSString *path;
if (release) {
path = [NSString stringWithFormat:@"%@%@",
[[NSBundle mainBundle] resourcePath],
@"/releaseClick.wav"];
} else {
path = [NSString stringWithFormat:@"%@%@",
[[NSBundle mainBundle] resourcePath],
@"/cllick.wav"];
}
//declare a system sound id
SystemSoundID soundID;
//Get a URL for the sound file
NSURL *filePath = [NSURL fileURLWithPath:path isDirectory:NO];
//Use audio sevices to create the sound
AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID);
//Use audio services to play the sound
AudioServicesPlaySystemSound(soundID);
}
这个方法有问题吗? (正如我所说:当我使用 XCode 安装应用程序时它可以正常工作)
顺便说一下,我的应用是“KA 反馈”。但它仅在德国可用。
如果有任何建议,我将不胜感激。
【问题讨论】:
标签: iphone audio gps app-store cllocationmanager