ios9

Attempt to present UIAlertController on UIViewController whose view is not in the window hierarchy

吃可爱长大的小学妹 提交于 2019-12-19 08:03:12
问题 I'm trying to check the UIAlertController in iOS 9 for my sample application and while run it then I had found warning in console. I'm using Xcode 7 and Objective C. Please find the below warning message in console. Warning: Attempt to present < UIAlertController: 0x7fb1bb5be040 > on < ViewController: 0x7fb1bb5aef30 > whose view is not in the window hierarchy! Please find the below code for more information. UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"My Alert"

Apple-app-site-association not found

Deadly 提交于 2019-12-19 07:39:39
问题 I'm trying to pass the Apple Search Validation Tool, and I'm having problems with the apple-app-site-association. For some reason the bot can't find my file. But if you open the URL it's there. It's not a formatting problem, because the file isn't even found. I have https so it's not needed to sign my file. I don't have any extension on my file, as asked in the documentation. Someone had a similar problem and asked on the Apple Developer foruns, but it didn't help me. My url is https:/

Unable to open liblaunch_sim.dylib

[亡魂溺海] 提交于 2019-12-19 06:05:32
问题 Today I have updated xcode. when i tried to run project on simulator(ios version < 9.0) I got this error. "Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator runtime. It ran perfectly on ios9.0 simulator. here is screen shot. please help me. 回答1: This will also occur when you don't have the simulator actually installed within XCode. I recently upgraded to XCode 7.1 and didn't install all simulators and received this same error. Go to Preferences -> Downloads Verify

Unable to open liblaunch_sim.dylib

蓝咒 提交于 2019-12-19 06:05:30
问题 Today I have updated xcode. when i tried to run project on simulator(ios version < 9.0) I got this error. "Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator runtime. It ran perfectly on ios9.0 simulator. here is screen shot. please help me. 回答1: This will also occur when you don't have the simulator actually installed within XCode. I recently upgraded to XCode 7.1 and didn't install all simulators and received this same error. Go to Preferences -> Downloads Verify

iOS 9 Crashing in _prepareForCAFlush with EXC_BAD_ACCESS KERN_INVALID_ADDRESS

北城以北 提交于 2019-12-19 05:12:13
问题 With the release of iOS 9, we are seeing several crash reports for what appears to be a bug from Apple's side of things in iOS 9. This is happening across device types (iPhone, iPad and iPod). I am looking to find out why this may be happening and if there is anything I can do to work around it. This stack is being reported through our crash reporting system (Crashlytics) so unfortunately I don't have reproducible steps or code, but I will try and answer any questions as best as I can. The

Achieve a Uniform UIBlurEffect in the Primary View of a UISplitView

梦想的初衷 提交于 2019-12-19 04:19:48
问题 I'm using a stock UISplitViewController with out-of-the-box Master and Detail view controllers. In a storyboard, I've added a UIImageView to the Detail controller set to effectively fill the view with a single image. In the Master controller, I've used the following to blur the background of that controller: // In viewDidLoad self.tableView.backgroundColor = [UIColor clearColor]; UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]; UIVisualEffectView

Drag and reorder - UICollectionview with sections

梦想的初衷 提交于 2019-12-19 03:57:33
问题 Is that possible to do drag and reorder from one section to another section from collectionview - iOS 9. Every time am dragging from 1st section to drop at 4th section am getting below crash, Assertion failure in -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering: func collectionView(collectionView: UICollectionView, moveItemAtIndexPath sourceIndexPath: NSIndexPath,toIndexPath destinationIndexPath: NSIndexPath) { let sequence = ArrayrelatedSequence

CBCentralManager iOS10 and iOS9

痴心易碎 提交于 2019-12-18 21:18:05
问题 So I'm migrating to iOS10 but I also need my code to run on iOS9. I'm using CoreBluetooth and CBCentralManagerDelegate. I can get my code to work for iOS10 however I need the fallback to work for iOS9 as well. func centralManagerDidUpdateState(_ central: CBCentralManager) { if #available(iOS 10.0, *) { switch central.state{ case CBManagerState.unauthorized: print("This app is not authorised to use Bluetooth low energy") case CBManagerState.poweredOff: print("Bluetooth is currently powered off

Testing 3D touch with iOS Simulator

天大地大妈咪最大 提交于 2019-12-18 20:05:23
问题 Questions: I was wondering if anyone has tried 3D touch feature on a simulator or rather anyone know whether it actually works there or not. I know it's a hardware based feature and support is there only for latest iPhone 6S & iPhone 6S Plus models. On an iPhone 6S simulator, I have tried with Hardware --> Force Touch Pressure --> Deep Press but no gain. 回答1: you must develop on a device that supports 3D Touch. Simulator does not support 3D Touch,the documentation from apple, if you need the

iOS 9 Universal Links not launching the app from the same domain

天大地大妈咪最大 提交于 2019-12-18 17:01:05
问题 I have setup my AASA JSON file to open the app when someone visits myDomain.com/ShowInTheApp/* This works from Notes App, Email, Gmail App, Gmail web on safari and basically any other websites other myDomain.com . When myDomain.com/chooseAppORweb.html contains a link to myDomain.com/ShowInTheApp/ , safari always opens it in the same tab, app wont get launched. I can tap and hold the link to show the context menu that contains an entry "Open In [My app name]" which will indeed launch my app.