ios9

View aligned to top of keyboard appears in wrong place in iOS 9 Shortcut Bar only mode

心不动则不痛 提交于 2019-11-30 22:06:57
iOS 9 adds a Shortcut Bar to the iOS 8 QuickType bar . As part of this change, if you connect a bluetooth keyboard to an iPad, the keyboard is in a minimized Shortcut Bar only mode (which can be simulated by pressing command-k in the simulator). I have code which gets the keyboard height using a method similar to the following: CGRect keyboardFrame = [[info objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue]; CGFloat keyboardHeight = keyboardFrame.size.height; // = 313 The problem is that when the keyboard is toggled between the expanded and collapsed state, the height remains the same,

Subclass of GKGraphNode costToNode method never getting called

别等时光非礼了梦想. 提交于 2019-11-30 21:11:26
I am trying to subclass GKGraphNode2D to also include different penalties for different terrains (in the costToNode method). When I create a new GKGraph with an array of my new subclass and call findPathFromNode on the GKGraph, it ignores my costToNode method entirely. The code looks like: public class PenaltyGraphNode: GKGraphNode2D { public let penalty: Float init(position: CGPoint, penalty: Float) { self.penalty = penalty let point = vector_float2(Float(position.x), Float(position.y)) super.init(point: point) } override public func costToNode(node: GKGraphNode) -> Float { guard let

SKEmitterNode particleAction not working iOS9 Beta

强颜欢笑 提交于 2019-11-30 21:10:47
I'm testing my app in iOS9 Beta 4 and finding lots of code that used to work in iOS8 that is no longer performing as expected. Another example is SpriteKit's SKEmitterNode "particleAction" property. The following code worked in iOS8 but does not work on iOS9: // create the particle movement action SKAction *move = [SKAction moveByX:100 y:100 duration:5]; // also, I've tested several other SKActions, such as scaleBy, fade, rotate, to no effect here // create a target node and add to the SKScene SKNode *targetNode = [SKNode node]; targetNode.position = origin; [mySKSceneNode addChild:targetNode]

Swift 2.0 Xcode 7.1 image picker front camera image rotated when picked

只谈情不闲聊 提交于 2019-11-30 20:55:51
问题 I have a tableview that displays people with an imageview and label. When a person is inserted into the table it can pull from contacts and the images look fine. When a person is not added using contacts it pulls the name from a text field and an image picker is presented for the camera. If I take a picture from the rear camera no issues. If I take a picture from the front facing camera, then the picture is off based on screen orientation. Even if the screen isn't rotated when taking the

iOS9系列专题三——应用瘦身

≡放荡痞女 提交于 2019-11-30 20:47:39
更小,更快——iOS9的App Thinning apple在iOS9中引入了一套新的app瘦身方案,通过一些优化策略,将尽可能的减小app安装包的体积。这部分的大多工作是由app store来完成,开发者并不需要付出太多额外的开销。这篇博客将这部分内容做了简单的介绍,详细信息在 App Thinning 。 App的瘦身策略主要包括三部分: 一、slicing 这部分的主要原理是不同的设备下载安装不同的app包,各个app包副本中包含相应尺寸的素材。在xcode中,使用asset catalog管理素材文件,在我们提交应用市场后,会自动帮我们生成各个尺寸包得app副本。 二、BitCode 字节码文件是app程序的一种中间形式,苹果会对包含字节码的app进行二次的优化,来进行相应的瘦身。 三、 On-Demand Resources 这是一种多级应用的设计思路,例如一个游戏,开发者可以将其分为一个大小各异的资源包,用户只需下载一个小的引导程序,在程序内加载相应资源包。这样,可以大大加快应用的安装速度。 专注技术,热爱生活,交流技术,也做朋友。 ——珲少 QQ群:203317592 来源: oschina 链接: https://my.oschina.net/u/2340880/blog/511704

iOS9系列专题五——全新的联系人与联系人UI框架

心已入冬 提交于 2019-11-30 20:47:27
iOS9全新的联系人相关框架——Contacts Framework 一、引言 在以前iOS开发中,涉及联系人相关的编程,代码都非常繁琐,并且框架的设计也不是Objective-C风格的,这使开发者用起来非常的难受。在iOS9中,apple终于解决了这个问题,全新的Contacts Framework将完全替代AddressBookFramework,AddressBookFramework也将成为历史被弃用。至于AddressBookFramework的相关api如何繁琐,在以前的博客中有记录,地址如下: 联系人信息相关编程: http://my.oschina.net/u/2340880/blog/407347 。 联系人UI界面相关编程: http://my.oschina.net/u/2340880/blog/407973 。 这一新的框架是iOS9新特性中十分受欢迎的一个。apple的Objective—C体系也更加完善与强大。 二、让我们来添加一个联系人 新的框架的整体思路是通过配置与请求来管理联系人,这样做有一个非常大的好处,逻辑简单,代码层次清晰。如下,通过添加一个联系人来向大家做演示: 1、联系人对象:CNContact 这个对象是用来配置联系人信息的,有可变的CNMutaleContact和CNContact,区别用来读取和创建联系人

fir.im Weekly

拥有回忆 提交于 2019-11-30 20:46:09
期待已久的 iOS 9 发布了,很多人更新完毕得出结论:这是值得升级的版本。随之而来的是适应 iOS9 开发技术。本期 Weekly 收集了一些关于 iOS9 相关的开发资源,希望对你有帮助。 iOS9 适配开发教程 @iOS程序犭袁 在微博上分享了关于一系列的 iOS9 适配系列教程,截至目前共有6篇,分别关于 https 请求、后台定位、企业级分发、Bitcode、URL scheme、iPad适配 Slide Over 和 Split View,后续还将持续更新。良心干货,正在头疼 iOS9 开发的你一定不要错过。 详情见 GitHub 地址: iOS9 Adaptation Tips 延伸阅读: 【iOS9适配】 基础篇: iOS9适配 高级篇: iOS9高级技巧 Demo篇: iOS-9-Sampler ##iOS9 Day-by-Day系列之 UIStack View 在 iOS9 中,Apple 引入了 UIStackView,他让你的应用可以通过简单的方式,纵向或横向的叠放你的 views。UIStackView 采用 auto layout 的方式来管理他的子视图的位置和尺寸,让你更简单的构建自适应的 UI。 这是 @Nathan_Bao 翻译的关于 iOS9 学习的一系列文章,查看更多请移步 目录页 ,本系列原作者是来自 shinobicontrols 的开发者

ionic app iOS 9 problems [$rootScope:infdig] 10 $digest() iterations reached [duplicate]

江枫思渺然 提交于 2019-11-30 20:21:28
This question already has an answer here: angular routing on ios9 $rootScope:infdig error 2 answers in my ionic/angularjs application I get some errors on iOS 9 on the filtering mechanism if I click on a ionic list card item. The error I get: Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting! Watchers fired in the last 5 iterations: [] And the callstack: It only happens if I click on a entry or if I click back from that entry. On iOS8 everything works fine. Thanks for any kind of help Well I found out that this is a common bug in iOS9 and there's a patch for this: https:/

Security error in ios 9 in ccAvenue payment gateway

此生再无相见时 提交于 2019-11-30 19:44:48
I integrate ccAvenue paymeny gateway in my iOS app before release of iOS 9. Payment was successfully transfer to merchant account in iOS 8. When i test my app in iOS 9 payment is transfer to merchant account but display the security error. I also change libcrypto.a and libssl.a library. Before change this library xcode throw error like libcrypto.a(cryptlib.o), building for iOS simulator, but linking in object file built for OSX, for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Import the latest libcrypto.a and libssl.a to your project. Run

Contact is missing some of the required key descriptors in ios

£可爱£侵袭症+ 提交于 2019-11-30 19:22:48
I have retrieves all contact by using following method - (void)getAllContacts:(void(^)(NSArray *array))handler { CNAuthorizationStatus status = [CNContactStore authorizationStatusForEntityType:CNEntityTypeContacts]; if (status == CNAuthorizationStatusDenied || status == CNAuthorizationStatusDenied) { UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil message:@"This app previously was refused permissions to contacts; Please go to settings and grant permission to this app so it can use contacts" preferredStyle:UIAlertControllerStyleAlert]; [alert addAction:[UIAlertAction