ios9

Problems with window.history using JQuery/Javascript on Cordova app in IOS9

走远了吗. 提交于 2019-12-04 08:34:34
问题 I'm having trouble with a Cordova app under IOS9 (beta). I'm using latest Cordova and JQuery mobile builds. The window.history is not getting updated which is causing the following failures: window.history.go(-1) fails to go back a page window.history.length is stuck at 1 even if you navigate three pages deep Links marked in jQuery as data-rel="back" fail to go back when pressed I've put together the following sample code which fails when run as a separate Cordova app under IOS9(beta) but

Custom Shader SCNProgram iOS 9 Scenekit

六眼飞鱼酱① 提交于 2019-12-04 08:32:11
问题 I am trying to mess around in SceneKit and teach myself it. Basically, I am creating a quad with 3 rectangular sides and 1 sloping slide. I want my texture on it to stretch and warp/deform across the surface. Reading some stuff online, it seems that I need to make an SCNProgram with custom vertex and fragment shaders to get the effect. But, I can't seem to get the texture to spread across the surface. Need help please. (I am new to graphics programming hence trying to teach it to myself). My

Adding labels programmatically, aligned with labels from Storyboard

落爺英雄遲暮 提交于 2019-12-04 08:06:03
Desired View: In Storyboard I have two labels with the blue background that I am creating in Autolayout. Their position will never change. Next, I would like to add anywhere from 1 to 10 labels in code in cellForRowAtIndexPath below the blue background labels. I am struggling to align the the labels added in code (brown background) with the ones created in Autolayout (blue background). Below is my failed attempt: Two approaches that failed: In cellForRowAtIndexPath get the frame of "B AutoLayout Static Label" and use the X position for Dynamic Labels. Did not work. Adding constraints also did

How to upload file apple-app-site-association for universal linking in server for iOS app?

一笑奈何 提交于 2019-12-04 07:48:15
问题 What is the procedure to upload apple-app-site-association file in server. stg1.example.com is website where universal linking need to be done and file should be uploaded in the root path of it.How to make the service to upload for universal linking in iOS . How to upload the json formatted file in the server ? 回答1: The apple-app-site-association file needs to be accessible via HTTPS , without any redirects, at https://stg1.example.com/apple-app-site-association . The file looks like this: {

How to change date picker date to a NSDate type but with zero seconds

假如想象 提交于 2019-12-04 06:39:48
问题 I have a date picker that returns me a NSdate value. And I want to have a date value of seconds set to 0. I have the code to do it in objective c as NSTimeInterval time = floor([date timeIntervalSinceReferenceDate] / 60.0) * 60.0; return [NSDate dateWithTimeIntervalSinceReferenceDate:time]; where date is the datepicker's date. So how to realise this in swift? 回答1: It is almost identical in Swift: let date = NSDate() let ti = floor(date.timeIntervalSinceReferenceDate/60.0) * 60.0 let date1 =

the button is disabled when text view is empty else is enabled

喜夏-厌秋 提交于 2019-12-04 06:22:03
问题 I'm developing note app, when the text view is empty the done button should be disabled so user could not be able to save empty notes into data base, else the button should be enabled. here's my code below, my attempts have failed; how I can solve this problem? @IBOutlet weak var textView: UITextView! @IBOutlet weak var done: UIBarButtonItem! override func viewDidLoad() { super.viewDidLoad() title = note?.text if (self.textView.text.isEmpty){ done.enabled = false } if let noteContent = note {

iOS9 What is the proper way to update AFNetworking calls to work with HTTPS (error -1200 , -9824)?

独自空忆成欢 提交于 2019-12-04 05:23:39
I'm switching from iOS8 to iOS9 and AFNetworking web service calls over HTTPS that worked before no longer work. I'm getting error -1200 and error -9824 The issue is related to using self-signed certificates. Error Domain=kCFErrorDomainCFNetwork Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSErrorFailingURLStringKey=[server url], NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFNetworkCFStreamSSLErrorOriginalValue=-9824 I see this related question: IOS9 SSL error with NSURLSession , with the following

SpriteKit scene screen offset on iOS9 / Xcode7

拈花ヽ惹草 提交于 2019-12-04 05:08:28
问题 I moved a SpriteKit project from Xcode64 to Xcode7, ran it in a iOS9 simulator and the screen content is shifted. (It is not shifted when running in iOS8 simulator.) iOS9 Simulator screenshot: Zooming the SpriteKit scene in Xcode7 scales the frame and the content with different centers. When the scene is not zoomed out or in, it looks perfect; but with zoom out it looks like this: (note how the yellow frame is not aligned with the node anymore) Xcode 7 scene zoomed out screenshot: I created a

Declaration is only valid at file scope (extension)

大城市里の小女人 提交于 2019-12-04 05:02:53
问题 i try to make my app just in portrait mode iam using navigationcontroller i get this error iam usring Xcode7 and Swift 2 And Target System IOS 9.3 Declaration is only valid at file scope extension UINavigationController { public override func supportedInterfaceOrientations() -> Int { return visibleViewController.supportedInterfaceOrientations() } public override func shouldAutorotate() -> Bool { return visibleViewController.shouldAutorotate() } } extension UITabBarController { public override

'Convert to latest Swift Syntax' breaks the build even when there are no changes

蓝咒 提交于 2019-12-04 04:11:37
My project is in objective-c with just one tableviewcontroller in swift. I downloaded the Xcode-beta today which prompted me to 'Convert to latest Swift Syntax'. After I follow the steps it shows me that there are no changes. I do not see any changes in the proj file either but it has errors. Please note that I do not see the errors when I choose not to covert to latest swift syntax - the app builds and runs fine in this case. Any idea why it is breaking? Here are the errors - cannot parse the debug map for "app name" No such file or directory clang: error: linker command failed with exit code