ios9

UIDatePicker Flips on iOS9 RTL

…衆ロ難τιáo~ 提交于 2019-12-23 23:07:26
问题 I have a weird issue when displaying a DatePicker - Time mode on RTL. Im displaying the date picker programmatically. Minutes should be on the right side, and hours on the left, and on the following image you can see it's flipped: It happens on iOS 9 and above. The code I'm using: UIDatePicker *datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, self.view.bounds.size.height+44, self.view.frame.size.width, 216)]; datePicker.tag = tag; [datePicker setSemanticContentAttribute

iOS 9 errors and correct conversion to swift 2

我们两清 提交于 2019-12-23 22:20:10
问题 So after updating to iOS 9 and Swift 2 I had many errors in my project that even after clicking the convert automatically option didn't get fixed. Luckily most were pretty simple and I was able to figure them out but I have three major ones left. Is anyone able to help me out with these? Thanks a lot! Code chunk #1 override func layoutAttributesForElementsInRect(rect: CGRect) -> [AnyObject]? { return attributesList } Error for chunk 1 Method does not override any method from its superclass

HMLocationEvent Sample

吃可爱长大的小学妹 提交于 2019-12-23 20:32:04
问题 I am implementing HMLocatinEvent in my HMHome. I am trying the below code but one thing I didn't get is I don't know how to execute functionality like incase if I left home have to switch off all the lights. I didn't find any method related to the actionset. Please correct me if I am wrong. Requirement: I want to switch off all the HMAccessories incase if I left home. Questions : To achieve the requirement Do I need to use HMLocationEvent and HMEventTrigger? or is there any alternate? Incase

RTL language behavior in iOS 9

落花浮王杯 提交于 2019-12-23 18:04:22
问题 Our app supports RTL language like Arabic, Persian. After iOS 9 the navigation controller and tab bar controller behavior has been changed. I found only this link ios-9-disable-support-for-right-to-left-language for solve this problem I write this code in my appDelegate and it works fine and navigation bar and tab bar set as LTR. if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"9.0")) { [[UINavigationBar appearance] setSemanticContentAttribute:UISemanticContentAttributeForceLeftToRight]; [

UIWebView does not show images on iOS9, and SafariViewController does not load HTML files at all?

杀马特。学长 韩版系。学妹 提交于 2019-12-23 15:34:51
问题 Just found that UIWebView that load HTML string with images embedded does not work correctly to show the image on iOS9 (GM seed), which worked correctly previously on iOS8 . After viewed the WWDC SafariViewController video here and thought Apple wants us to turn to the new framework, which looks quite promising. But problem is SafariViewController does not support loading local HTML files and it only supports HTTP and HTTPS, so far on iOS9 GM seed and Xcode 7.1 beta. I tried to load it using

Unable to install iPhone app from diawi after iOS 9 upgrade?

梦想与她 提交于 2019-12-23 13:09:05
问题 I have upgraded my iPhone OS to iOS 9.0. After that I am not able to install the app via IPA file from diawi. I am able to install it from iTunes. Is there any solution or alternative to that other than iTunes? P.S. iPhone Configuration Utility is also crashing on my Mac. 回答1: iOS 9 became more strict with the manifest information:the tag,the value,or something else. I have met another problem.But I think maybe will give you some useful information. The way to find out why,the most important

iOS 9 Spritekit Double Tap Not Working on iPhone 6S

99封情书 提交于 2019-12-23 12:37:52
问题 I have been building a SpriteKit game for a while now. Its a card game that allows double-tap on card sprites for specific behaviors. Now that we're in iOS 9, double taps do not work at all on iPhone 6s. Works fine on iOS8, all devices. In my SKScene , i'm using the touchesBegan method to detect taps: -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPoint touchLocation = [touch locationInNode:self]; if(touch.tapCount==2) { NSLog(@

Swift 2 iOS 9: Plist Reading and Writing

二次信任 提交于 2019-12-23 12:36:47
问题 I believe something has changed within Swift 2, because no tutorials on how to read and write to property lists seem to be working. Can anyone whose developing for iOS 9 share their method of R/W to Plists using Swift 2 on Xcode 7? 回答1: This is working for me on iOS 9 and Xcode 7: let filePath = NSBundle.mainBundle().pathForResource("FileName", ofType: "plist")! let stylesheet = NSDictionary(contentsOfFile:filePath) The only thing is that the result is NSDictionary and not Dictionary . 回答2:

WKSelectionGranularityCharacter option of WKWebView broken in iOS 9

£可爱£侵袭症+ 提交于 2019-12-23 12:06:36
问题 I have an iPad app that uses the WKSelectionGranularityCharacter option of a WKWebView . It worked fine on an iOS 8 device and works on an 8.4 simulator but is broken on 9.1. A long press on text shows the magnifier but upon release no text is highlighted nor do any selection handles appear. Is anyone else seeing this changed/broken behavior? Is there a workaround? Update 10/31/2015 : Also fails on XCode 7.2 and iOS 9.2 beta. Reported to Apple as a bug. Update 11/26/2015 : Still broken in

Simulating pressing the Home button in Xcode 7 UI Automation

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 09:43:20
问题 I've got it down to: XCUIDevice.pressButton(noideawhatgoeshere) I've tried XCUIDeviceButtonHome, home, Home, 1 How do I simulate pressing the home button in Xcode on iOS? 回答1: You need to get the device instance first. So to simulate pressing the home button: XCUIDevice.sharedDevice().pressButton(XCUIDeviceButton.Home) should work (it does for me on a physical device) Thanks! Mazen Swift 5 Version: XCUIDevice.shared.press(XCUIDevice.Button.home) Also, verified it works in the simulator, at