ios9

Updated to Xcode 7.0.1 and Project now has problems

半世苍凉 提交于 2019-12-21 05:36:33
问题 So I uploaded my Xcode 6.1 build to iTunes Connect and the app was approved. Now i'm trying to update the app and I updated to Xcode 7.0.1 and Xcode is giving me problems stating: (For app I used storyboards and Objective-C) warning: All interface orientations must be supported unless the app requires full screen. warning: A launch storyboard or xib must be provided unless the app requires full screen. - (NSUInteger)supportedInterfaceOrientations { return (UIInterfaceOrientationMaskPortrait |

iOS9: Using dynamic framework with Simulator and Device

孤人 提交于 2019-12-21 04:34:12
问题 I created a dynamic cocoa framework that I would like to use across my apps. After I build the framework for an actual device, I bring it over to an app. I can only run the app on that device. When I try to run it on a simulator, framework files are not recognized. I get error messages: 'ViewController' is unavailable: cannot find swift for declaration for this class I tried building the framework for an iPhone 6 simulator and running the app on an iPhone 6 simulator, but the same problem

create new group with contacts framework, CNErrorDomain Code = 2

别来无恙 提交于 2019-12-21 04:29:28
问题 i try to create and save a group with the Contacts Framework. First the user authorize the App for contacts access. A viewcontroller is presented and with a + button user shows an alertview with textfield. The user types the group name he wants and click to button of the alertview (save). This is the code for saving the new group. The group name is available but it is not possible to save this group anyway: CNContactStore *contactStore = [CNContactStore new]; [contactStore

iOS9: UIDatePicker with datePickerMode of UIDatePickerModeTime only shows Hours, and no Minutes

旧巷老猫 提交于 2019-12-21 04:01:30
问题 I'm using Xcode beta 7 with the iOS9 simulator. Using a UIDatePicker with a datePickerMode of UIDatePickerModeTime only shows Hours, and not minutes. See screenshot: On iOS 7 and 8, obviously it works as expected, and shows both Hours and Minutes. Screenshot: I really do not want to reinvent the wheel and roll my own time picker. Any ideas on why this might be happening and how to fix? I can't find anything on google. thanks, Alex 回答1: Found a useful description of this problem in the iOS 9

Programmatically Link CNContacts

社会主义新天地 提交于 2019-12-21 02:51:17
问题 In my app, I want to create a new contact. If a contact with the same name already exists, I want to link the new contact to the old one. I have looked into the CNContact and CNContactStore references, and don't see any way to link contacts. Is this possible, and if so, how? 回答1: In IOS9 contacts in different accounts that represent the same person may be automatically linked together. To achieve this you should make sure that the name of your newly inserted contact matches the name of the

Observing values on AVPlayerItem in iOS9

馋奶兔 提交于 2019-12-21 02:47:12
问题 I have an app that uses AVPlayer to play an AVPlayerItem (video) from a remote URL. In iOS 6-8 I have been observing the AVPlayerItem's value for loadedTimeRanges to notify me when the playerItem is ready to be played by the player. This also works when observing the value for the item's duration , I believe. After updating to iOS 9 beta, none of the values on AVPlayerItem I observe ever makes it to the observeValueForKeyPath -method. Just as if I'm not observing them at all. I am still being

iOS 9 enterprise app verify failed

隐身守侯 提交于 2019-12-21 02:35:07
问题 Apple change the way enterprise app verified on iOS 9, but when I verify our app in "Settings - General - Profiles", I got this I've check the log: Oct 15 21:32:21 Nix-iPhone online-auth-agent[216] <Error>: Caller does not have required entitlement 'com.apple.private.mis.trust.set' Oct 15 21:32:21 Nix-iPhone online-auth-agent[216] <Error>: SecTrustEvaluate [leaf AnchorTrusted] Oct 15 21:32:31 Nix-iPhone online-auth-agent[216] <Notice>: Server returned no data Oct 15 21:32:31 Nix-iPhone online

Returning CGFloat.leastNormalMagnitude for UITableView section header causes crash

假如想象 提交于 2019-12-20 20:29:36
问题 I made an app for iOS 8 which uses grouped UITableView for one of its page. There are multiple sections in it that uses CGFloat.leastNormalMagnitude (or CGFloat.min in Swift 2 and below) for section header and footer height to remove the "default" space. Everything went well until the app run in iOS 9 and 10, where it crashes with this error: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'section header height must not be negative - provided height for

Swift 2 - Xcode 7.0 Cannot Access HTTPS site with unstrusted SSL Certificate

风流意气都作罢 提交于 2019-12-20 12:40:06
问题 Experts, I'm a Beginner in IOS 9 / XCODE 7 / Swift 2 Development Kit I'm trying to create an ios app that simply route to Web Application in HTTPS protocol. Below is my code so far in ViewController.swift import UIKit class ViewController: UIViewController { @IBOutlet var myWebView: UIWebView! /** * Function to Display the Web Application initial URL */ func loadAppURL(){ let siteAddress = "https://domain:8443/path/to/page" let url = NSURL (string: siteAddress) let urlRequest = NSURLRequest

How to open url in Safari and the get back to the app under UITests in Xcode 7?

别等时光非礼了梦想. 提交于 2019-12-20 12:37:14
问题 This is my custom view where "LondonStreet" is a button. When I tap that button I get url and open it in Safari (it works). Then I can go back, using "Back to Wishlist" button (it also works). The problem is when I try to test this under UITests. itemsTable.cells.elementBoundByIndex(0).buttons["addressButton"].tap() //press the button to open link in Safari Along with this line: app.statusBars.buttons["Back to Wishlist"].tap() //go back, doesn't work, although it was recorded by Xcode itself.