ios9.3

KVO broken in iOS 9.3

两盒软妹~` 提交于 2019-12-05 21:28:56
This might be an awful bug in iOS 9.3 (release). When adding a single observer to [NSUserDefaults standardUserDefaults] I've noticed that the responding method -observeValueForKeyPath:ofObject:change:context: is called multiple times. In the simple example below, every time a UIButton is pressed once, observeValueForKeyPath fires twice. In more complicated examples it fires even more times. It is only present on iOS 9.3 (both on sim and devices). This can obviously wreak havoc on an app. Anyone else experiencing the same? // ViewController.m (barebones, single view app) - (void)viewDidLoad {

WKWebView viewport shrink-to-fit not working on iOS 9.3

非 Y 不嫁゛ 提交于 2019-12-04 23:08:21
问题 In iOS 9.2, a WKWebView rendering HTML with fixed-width tables bigger than the device width could be told to shrink the content to fit by adding a viewport tag like this: <meta name="viewport" content="width=device-width, shrink-to-fit=YES"> This line caused the WKWebView to effectively zoom out the viewport so that the entire rendered page fit in the view frame without the need for scrollbars. For example, consider the following code, when run in viewDidLoad in a vanilla single view app:

Why is AVPlayer not continuing to next song while in background?

北战南征 提交于 2019-12-04 19:05:59
I have been streaming music from remote source using AVPlayer. I get URLs, use one to create an AVPlayerItem, which i then associate with my instance of AVPlayer. I add an observer to the item that I associate with the player to observe when the item finishes playing ( AVPlayerItemDidPlayToEndTimeNotification ). When the observer notifies me at the item end, I then create a new AVPlayerItem and do it all over again. This works well in the foreground AND in the background on iOS 9.2. Problem: Since I have updated to iOS 9.3 this does not work in the background. Here is the relevant code: var

WKWebView viewport shrink-to-fit not working on iOS 9.3

谁说胖子不能爱 提交于 2019-12-03 13:55:56
In iOS 9.2, a WKWebView rendering HTML with fixed-width tables bigger than the device width could be told to shrink the content to fit by adding a viewport tag like this: <meta name="viewport" content="width=device-width, shrink-to-fit=YES"> This line caused the WKWebView to effectively zoom out the viewport so that the entire rendered page fit in the view frame without the need for scrollbars. For example, consider the following code, when run in viewDidLoad in a vanilla single view app: WKWebViewConfiguration *wkWebConfig = [[WKWebViewConfiguration alloc] init]; WKWebView *newWebView = [

chatDidReceiveMessage method not called QuickBlox

馋奶兔 提交于 2019-12-02 00:53:46
I am using QuickBlox-iOS SDK for chatting. Login/Signup is working perfectly. Also I am able to send message but the delegate method - (void)chatDidReceiveMessage:(QBChatMessage *)message; is not getting called. Here's the code I am using to setup chat. Adding the following code in appDelegate : // connect to Chat [[QBChat instance] addDelegate:self]; QBUUser *currentUser = [QBUUser user]; currentUser.ID = [Global sharedInstance].currentUser.ID; currentUser.password = @"password"; [[QBChat instance] connectWithUser:currentUser completion:^(NSError * _Nullable error) { NSLog(@"connect to chat

iOS 9.3 freeze after calling openURL

断了今生、忘了曾经 提交于 2019-11-30 14:09:58
My app freezes after calling openURL on iOS 9.3 builds 13E233 & 13E234. I tried using dispatch_after but that does not fix the issue. Here's the code, nothing special. + (void)someMethod:(UIView *)senderView { [Utility showLoadingHUDWithText:nil inView:senderView]; [[SomeClient sharedClient] someNetworkAPI:^(id result) { [Utility hideAllHUDsForView:senderView]; NSDictionary *dict = (NSDictionary *)result; NSString *someString = dict[@"someKey"]; NSURL *url = [NSURL URLWithString:someString]; if ([[UIApplication sharedApplication] canOpenURL:url]) { [[UIApplication sharedApplication] openURL

KVO broken in iOS 9.3

旧城冷巷雨未停 提交于 2019-11-27 02:52:45
问题 This might be an awful bug in iOS 9.3 (release). When adding a single observer to [NSUserDefaults standardUserDefaults] I've noticed that the responding method -observeValueForKeyPath:ofObject:change:context: is called multiple times. In the simple example below, every time a UIButton is pressed once, observeValueForKeyPath fires twice. In more complicated examples it fires even more times. It is only present on iOS 9.3 (both on sim and devices). This can obviously wreak havoc on an app.