ios9

Frame calculations in `viewDidLayoutSubviews`

柔情痞子 提交于 2019-12-07 05:02:23
问题 First, I should mention, this is mostly an efficiency issue. There are many discussions as to where to do frame calculations where viewWillAppear is too early and viewDidAppear is too late (view is already visible). The common answer is to do frame calculations in viewDidLayoutSubviews . Problem is, it gets called multiple times. Worse, the most accurate call, the one where all frames have their final size is the last one. To my knowledge there is no way to know which call is that final one.

Xamarin.Auth iOS9 Authentication SSL ERROR

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 04:56:15
问题 I've just updated XCode to the 7.0 (7A220) and this take my Simulators to iOS9. From that moment I cannot perform successfully any OAUTH call from the simulators.. I tried every model, from my App to the "sample Xamarin.Auth App". The answer is always the same: "Authentication Error An SSL error has occurred and a secure connection to the server cannot be made" The Code is the STANDARD one, I only changed my AppID. The same code is working on the Android version of the same App! var auth =

Xcode 7.0 Beta fails to launch a watchOS 2 App on Apple Watch

依然范特西╮ 提交于 2019-12-07 03:58:47
问题 Tried a public sample code project and my own project. Observe no problem with watchOS 1. watchOS 2 App installs and operates successfully on the real Apple Watch and the simulator, but it won't support the debug mode launching the app on the device by Xcode. Tried to allow the system to create the Provisioning files and manually create the Provisioning files for the development mode. Test on 10.10, 10.11. Steps to Reproduce: Set up the Provisioning files on build settings, watchOS 2

PFFacebookUtils logInInBackgroundWithReadPermissions doesn't open Facebook after iOS9 update

时光怂恿深爱的人放手 提交于 2019-12-07 03:54:15
问题 I've updated to iOS9, and now my Facebook login button, which calls: [PFFacebookUtils logInInBackgroundWithReadPermissions:@[@"public_profile"] block:^(PFUser * _Nullable user, NSError * _Nullable error) {...} doesn't even attempt to open Facebook. I've added the necessary files to my info.plist file (as suggested here), which now looks like this: But the FB app doesn't launch, and the block is never called. Any ideas? 回答1: The (Parse) Facebook login in iOS9 by default will use Facebook in

Background color and rubber-band scrolling in Mobile Safari

北城以北 提交于 2019-12-07 03:46:20
问题 I'm building a webpage in Mobile Safari with a fixed header/footer and rubber-band scrolling in the main content: html, body { margin: 0 0; height: 100%; width: 100%; overflow: auto; } .header, .footer { height: 50px; position: fixed; z-index: 100; width: 100%; } .header { top: 0; background-color: #44677F; } .footer { bottom: 0; background-color: #4E3AFF; } .container { height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; } .content { background-size: 50px 50px; background-color:

iOS 9 Ionic Cordova App Crashes on iPhone; works on iPad

▼魔方 西西 提交于 2019-12-07 02:48:03
问题 Cordova v5.3.1 / Ionic v1.1.0 (library v1.6.4) Upgraded our application to iOS 9 from 8.4. The application builds and runs fine on iPad/iPad mini. However, it crashes when deployed to an iPhone. Below is the debug output: 2015-09-23 11:17:09.920 AnApplicaiton[6490:1359695] *** Assertion failure in -[UIApplication _cachedSystemAnimationFenceCreatingIfNecessary:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3505.16/UIApplication.m:1697 2015-09-23 11:17:09.926 AnApplication

Failed to load optimized model at path error with Google Maps API using Xcode 7 / iOS9

a 夏天 提交于 2019-12-07 02:26:52
问题 I am trying to use the Google Places API autocomplete feature in my code. import UIKit import GoogleMaps class ViewController: UIViewController, GMSMapViewDelegate { var placesClient: GMSPlacesClient? override func viewDidLoad() { super.viewDidLoad() placesClient = GMSPlacesClient() let filter = GMSAutocompleteFilter() filter.type = GMSPlacesAutocompleteTypeFilter.City placesClient?.autocompleteQuery("Pizza", bounds: nil, filter: filter, callback: { (results, error: NSError?) -> Void in if

AVPlayer's video and audio become out of sync after pausing and then resuming video

南笙酒味 提交于 2019-12-07 02:16:52
问题 I'm using AVPlayer to play videos in my app. Video playback always works perfectly, except for when you pause/resume the video. If the user presses the pause button, and then resumes the video, sometimes the audio will be ahead of the video. The video resumes at the correct location, but the audio is ahead. It's as if when you press pause, the audio keeps running. When they press the pause button, all I am doing is calling the pause method of the AVPlayer , and I have also tried setting it's

NSAllowsArbitraryLoads not working for ip address

[亡魂溺海] 提交于 2019-12-07 02:13:27
问题 I am trying to get my app to connect to an http server at 152.111.198.244 through the Apple Transport Security. And nothing I'm trying works. Adding the NSAllowsArbitraryLoads key to the info.plist file of my project still did not allow my app to connect to this specific ip address 152.111.198.244 I have gone through the technote on Apple Transport Security. I installed OSX 10.11 to try and find what settings might work for the URL using nscurl --ats-diagnostics http://152.111.198.244 and

iOS 9: UICollectionView DataSource is not set

百般思念 提交于 2019-12-07 01:42:34
问题 Since iOS 9 launched, Crashalytics has reported a fair number of crashes from NSInternalInconsistencyException: UICollectionView data source is not set even when the data source is set. It feels like it might be an SDK bug, but I have no idea how to avoid it. Details: This only happens on iOS 9. Hundreds of occurrences on iOS 9, zero on 7/8 This happens on the main thread, deep in UIKit code I am setting the DataSource , but it looks like the UICollectionView is outliving the DataSource ? No