ios9

Using a Metal shader in SceneKit

守給你的承諾、 提交于 2019-12-06 06:14:37
问题 I'd like to use a Metal shader to apply a toon/cell shading to materials used in the scene. The shader I'm trying to implement is Apple's own AAPLCelShader found in the MetalShaderShowcase. I'm a little new to implementing shaders in SceneKit so I could be doing everything completely wrong. From what I understand in the documentation a Metal or GL shader can be used to modify SceneKit rendering as of iOS 9 and Xcode 7. The documentation suggests that this is done in the same way as GL shaders

UIKeyboardWillShowNotification not calling and only UIKeyboardWillHideNotification calling in iOS 9

若如初见. 提交于 2019-12-06 06:13:42
问题 All is working good till iOS 8. But when user tap on text field control comes directly in UIKeyboardWillHideNotification notification Log in console -Can't find keyplane that supports type 4 for keyboard iPhone-PortraitTruffle-NumberPad; using 675849259_PortraitTruffle_iPhone-Simple-Pad_Default Here is the code-- ` In view did load - (void)viewDidLoad { [super viewDidLoad]; self.txtMobNumber.delegate = self; self.txtMobNumber.keyboardType = UIKeyboardTypeNumberPad; [[NSNotificationCenter

iOS custom URL schemes vs. Universal Links and Android counterpart

点点圈 提交于 2019-12-06 05:54:13
问题 I'm looking for functionality where when a user receives a message - let's say through the WhatsApp app - containing a link starting with a certain scheme (prefix), my app will be invoked when the user taps on that link. I understand that this feature is already available as "custom URL schemes" but I also noticed now that Universal Links have a similar thing. So, is there any issue with "custom URL schemes"? I don't want to use Universal Links because I don't want my app to be restricted to

automaticallyAdjustsScrollViewInsets doesn't work in iOS9

余生颓废 提交于 2019-12-06 05:30:00
问题 In my app I have lots of VCs with scrollviews of all kinds (table, collection, etc.). All of them appear inside NavigationController and I used .automaticallyadjustsscrollviewinsets property of VC to prevent content from going under the NavigationBar. It works fine prior to iOS9. I've updated my test iPhone to iOS9 yesterday and noticed that all scrollviews now does not have proper insets. I've updated XCode to latest version (7.0) and rebuilt the app - no effect. I've checked on the other

shouldAutorotate not called on view controller

你说的曾经没有我的故事 提交于 2019-12-06 04:42:12
问题 I have a simple app consisting of a single view controller. I started with the Xcode 7 GM Single View Application template, but then deleted the main storyboard, and set up my view controller like this: func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { let vc = ViewController() window = UIWindow(frame: UIScreen.mainScreen().bounds) window!.rootViewController = vc window!.makeKeyAndVisible() return true } In my info

css rules doesn't work properly on iOS9

 ̄綄美尐妖づ 提交于 2019-12-06 03:14:53
问题 i have a problem with iOS9 about site's css. css rules works fine on android and iOS8. but on iOS9, site messed up. this is the difference ios8 and ios9. What is the possible problem and how can i fix this? Thanks for help. css: section.destinations { float: left; width: 82.5%; display: inline-block; position: relative; overflow: hidden; margin: 0 auto; font-weight: 300; font-size: 1.25em; } .content-wrap { position: relative; border-radius: 5px; } .content-wrap section { margin: 0 auto; max

Adding labels programmatically, aligned with labels from Storyboard

你。 提交于 2019-12-06 03:13:16
问题 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

How to pass array by reference without function ? swift

偶尔善良 提交于 2019-12-06 02:44:10
I have this class: class MainView:UIView{ var categories:[Category]! } i want to set the categories arg, but i need to pass it by reference not value. because it's more efficient and better. so if i did this: let mainView = MainView() mainView.categories = categoriesData. then it pass it by value. if i need to pass it by reference i could do that by using function inside the MainView() class MainView:UIView{ var categories:[Category]! fun setCategories(inout categories: Int){ self.categories = categories; } } but if i don't want to use set function, How could i pass it by reference. e.g

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

六眼飞鱼酱① 提交于 2019-12-06 01:48:00
问题 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?,

'Open this page in “null”' Modal appearing from FacebookSDK login after iOS9 and Swift 2 upgrade

放肆的年华 提交于 2019-12-06 01:25:38
问题 I'm in the process of updating projects to Swift 2 and iOS 9. One of the projects I'm doing relies heavily on Facebooks SDK. I use it to login, get user information, ect... Prior ot the update, once you logged in the Safari would redirect you directly to the app. Now I'm getting a fun little modal displaying the following (See Fig 1 at bottom) I assume this has some connection to the new Info.plist key we add LSApplicationQueriesSchemes with a Item0 as fbauth2 now required by iOS 9. I also