我看了堆栈溢出有很多类似的问题,但无法准确理解.据我所知,配置文件有三种类型 -
开发配置文件允许进行测试和调试.不使用Xcode进行beta测试的临时分发.
但我的问题是 .ipa是为使用开发配置或使用adhoc分发配置进行测试而创建的,这两种ipa有什么区别?
感谢您的回答.
我正在整合Pushwoosh SDK for Push Notification,它UIWindow用于表示从Pushwoosh门户发送的HTML页面
- (void) showWebView {
self.richPushWindow.alpha = 0.0f;
self.richPushWindow.windowLevel = UIWindowLevelStatusBar + 1.0f;
self.richPushWindow.hidden = NO;
self.richPushWindow.transform = CGAffineTransformMakeScale(0.01, 0.01);
[UIView animateWithDuration:0.3 animations:^{
self.richPushWindow.transform = CGAffineTransformIdentity;
self.richPushWindow.alpha = 1.0f;
} completion:^(BOOL finished) {
}];
}
- (void) showPushPage:(NSString *)pageId {
NSString *url = [NSString stringWithFormat:kServiceHtmlContentFormatUrl, pageId];
HtmlWebViewController *vc = [[HtmlWebViewController alloc] initWithURLString:url];
vc.delegate = self;
vc.supportedOrientations = supportedOrientations;
self.richPushWindow.rootViewController = vc;
[vc view];
}
Run Code Online (Sandbox Code Playgroud)
在关闭HTML页面时,它会调用
self.richPushWindow.transform = CGAffineTransformIdentity;
[UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionCurveEaseOut animations:^{
self.richPushWindow.transform …Run Code Online (Sandbox Code Playgroud) 我UILocalNotification用来提醒用户,如果应用程序没有运行,MPMusicPlayerController播放iPod音乐和MPMoviePlayerController播放无线电流网址.
根据Apple文档:如果iPhone被锁定而设备接收到本地通知,那么它将播放30秒的声音,当用户滑动滑块时,它将占用应用程序前景并发生两种情况
如果App没有运行则调用方法
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
如果App已经运行,则调用方法 -
(void)application:(UIApplication *)app didReceiveLocalNotification:(UILocalNotification *)notify
我可以用这些方法完成我的任务.
问题:当iPhone被锁定并收到本地通知且应用程序在前台运行时,我需要我的应用程序能够播放我的声音(可能是iPod音乐或流媒体网址,但不是本地通知声音,持续30秒).
参考应用程序:"闹钟高清"和应用程序商店中也可用的其他应用程序正常工作,但这些应用程序在后台运行时无法播放警报(我无法理解为什么???)
我还尝试了 如何防止iphone从深度睡眠:
通过定期播放无声音乐来防止iPhone深度睡眠,但如何通知应用通知已收到,所以开始播放"实际音乐"?以及如何开始播放新音乐?
我有一个Xcode 4.5.1.我想将此项目转换为ARC以提高性能.我正在执行这些步骤.
编辑 - >重构 - >转换为Objective C ARC但收到错误:
ARC禁止结构或联合中的Objective-C对象.