ios9

Error: _handleNonLaunchSpecificActions in iOS9

跟風遠走 提交于 2019-12-03 00:34:02
问题 I am getting the following error on iOS 9: -[UIApplication_handleNonLaunchSpecificActions: forScene: withTransitionContext: completion:] unhandled action -> <FBSSceneSnapshotAction: 0x150b2aef0> { handler = remote; info = <BSSettings: 0x15333f650> { (1) = 5; }; } Has anyone else come across this error or it's implications? What is wrong? 回答1: There is nothing wrong with your code. This is a logging message internal to Apple, and you should file a radar about it. There are two hints that show

Universal links on iOS vs. deep links (URL schemes)

孤街醉人 提交于 2019-12-03 00:33:33
问题 As I'm reading, iOS 9 introduced Universal Links. In the "Support Universal Links" section in Apple's App Search Programming Guide, it says that this is not exactly like deep linking with URL schemes, but I'm not totally clear about this topic: What is actually the difference(s) between Universal Link and the URL Schemes? Is it that a Universal Link is only for hyperlinks in websites, and the Mail or Messages apps? Do Universal Links replace URL schemes? Are Universal Links a type of deep

How unwindForSegue:towardsViewController: works?

♀尐吖头ヾ 提交于 2019-12-03 00:24:20
In my simple app, I have created some controllers with basic segues between them: Yellow controller -> BlueController -> GreenController -> OrangeController . Every of them has its own custom class. From OrangeController I created unwindSegue to my YellowController . It is ok. Within every class I put: override func unwindForSegue(unwindSegue: UIStoryboardSegue, towardsViewController subsequentVC: UIViewController) { print(unwindSegue) print(subsequentVC) } But it was not called at all. Why? What demo should I prepare to test this functionality? The same is with: func

iOS9 - Bitcode(中间码)

匿名 (未验证) 提交于 2019-12-03 00:19:01
Bitcode是什么? 首先我们看一下官方描述: Bitcode is an intermediate representation of a compiled program. Apps you upload to iTunes Connect that contain bitcode will be compiled and linked on the App Store. Including bitcode will allow Apple to re-optimize your app binary in the future without the need to submit a new version of your app to the App Store. bitcode是被编译程序的一种中间代码。包含bitcode配置的程序将会在AppStore上被编译和链接。bitcode允许苹果在后期重新优化我们程序的二进制文件,而不需要我们重新提交一个新版本到AppStore。 当我们使用Xcode7以上版本新建一个项目之后,程序默认是使用bitcode,即bitcode选项默认为Yes,我们可以在Build Setting -> Enable bitcode选项中查看这个设置。 对于iOS而言,bitcode是可选的,对于watchOS和tvOS,bitcode是必须的

Sample code on dynamic UIApplicationShortcutItems

不羁岁月 提交于 2019-12-02 23:32:54
I'm looking after some Obj-C sample code for a dynamic UIApplicationShortCutItem . Basically, I have three static UIApplicationShortcutItems and I only want to display them under certain conditions. I presume that you can't change the visible status of a static UIApplicationShortcutItem , so I'm looking after a simple way to add dynamic UIApplicationShortcutItem s. chengpei You can use the following code to add shortcutitem for you app dynamic: UIApplicationShortcutIcon * photoIcon = [UIApplicationShortcutIcon iconWithTemplateImageName: @"selfie-100.png"]; // your customize icon

iOS9 - UITableViewCellContentView is covering up Controls inside Cell

孤人 提交于 2019-12-02 23:03:17
I have made a custom UITableViewCell called "SwitchCell" that has a switch. In iOS9 Only, using Xcode 7 beta, the Content view in the cell is on top of the switch. (See screenshot of View Hierarchy. You can clearly see that the content view of the cell is on top of the other views. ): So all the touches to the UISwitch are intercepted, and the IBAction does not fire. In iOS8, this is not a problem. See screenshot for iOS 8.4 simulator. You can see that there is no content view on top of the controls: Has anyone had this problem? I tried remaking the NIB from scratch, but the same result occurs

How to create an alertview for a button prompting to take pictures from gallery or camera roll?

◇◆丶佛笑我妖孽 提交于 2019-12-02 21:29:39
问题 import UIKit class AccountViewController: UIViewController,UINavigationControllerDelegate, UIImagePickerControllerDelegate { @IBOutlet weak var imageView: UIImageView! @IBOutlet weak var chooseButton: UIButton! let imagePicker = UIImagePickerController() @IBOutlet weak var mySwitch: UISwitch! @IBOutlet weak var myStatus: UILabel! @IBAction func mySwitchTapped(sender: AnyObject) { updateSwitchStatus() } override func viewDidLoad() { super.viewDidLoad() updateSwitchStatus() self

API to capture Live Photos in iOS9

ⅰ亾dé卋堺 提交于 2019-12-02 21:27:02
I can't find any API to capture live photos. Did I miss something? Apple release DOCs Live Photos Live Photos is a new feature of iOS 9 that allows users to capture and relive their favorite moments with richer context than traditional photos. When the user presses the shutter button, the Camera app captures much more content along with the regular photo, including audio and additional frames before and after the photo. When browsing through these photos, users can interact with them and play back all the captured content, making the photos come to life. iOS 9.1 introduces APIs that allow apps

UIDatePicker issue in iOS9

旧巷老猫 提交于 2019-12-02 19:44:16
Date is hiding in UIDatePicker in iOS9. i am using xib. This issue is only in xoode7(iOS9) Can any one help me to solve my issue?? I think this is problem with new font San Francisco (the font is big than Helvetica ) and .xib file. It can be hacked around by changing the UIDatePicker mode right before it was displayed, and then changing it back to the desired one: [myDatePicker setDatePickerMode:UIDatePickerModeDateAndTime]; [myDatePicker setDatePickerMode:UIDatePickerModeDate]; Also try adding DatePicker programmatically. I think its a bug in iOS 9 with new font. 来源: https://stackoverflow.com

What is replacement of CFReadStreamCreateForStreamedHTTPRequest?

五迷三道 提交于 2019-12-02 19:33:01
问题 In my objective C project i am using Segment 1). [(NSInputStream *)CFReadStreamCreateForStreamedHTTPRequest(kCFAllocatorDefault, request,(CFReadStreamRef)[self postBodyReadStream]) autorelease] but CFReadStreamCreateForStreamedHTTPRequest is deprecated what can i write alternatively ? I tried NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request Error throws:- Incompatible pointer types sending 'CFHTTPMessageRef' (aka