我想我的应用程序来应对F7,F8和F9键盘媒体控制按钮.
我知道这个可爱的库,但它不能与Swift结合使用:https://github.com/nevyn/SPMediaKeyTap
这很奇怪,在更新我的应用程序以支持通过Parse发送的iOS 8推送通知(使用Parse仪表板)后,推送通知不会发出任何声音.
我在Stackoverflow上发现了这个重复,但是发布的答案对我不起作用:ios8的Parse推送通知中没有声音
我尝试过的所有事情都没有.
使用解析代码更新了我的应用:
// Register for Push Notitications, if running iOS 8
if ([application respondsToSelector:@selector(registerUserNotificationSettings:)]) {
UIUserNotificationType userNotificationTypes = (UIUserNotificationTypeAlert |
UIUserNotificationTypeBadge |
UIUserNotificationTypeSound);
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:userNotificationTypes
categories:nil];
[application registerUserNotificationSettings:settings];
[application registerForRemoteNotifications];
} else {
// Register for Push Notifications before iOS 8
[application registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeAlert |
UIRemoteNotificationTypeSound)];
}
Run Code Online (Sandbox Code Playgroud)
编辑:我在Facebook开发者发现了一个惊人的错误报告:https://developers.facebook.com/bugs/719233564823090/
xcode push-notification apple-push-notifications ios parse-platform
我想拦截UIWebView中的单击,然后使用视频的URL.这怎么可能?我发现了一个有点类似的帖子,它指向了
webView:shouldStartLoadWithRequest:navigationType:
Run Code Online (Sandbox Code Playgroud)
代表.我似乎无法通过此委托获取视频的加载网址.
我试图让代码在iOS8中运行