ios8

Developer use of “Taptic Engine” on Apple Watch

吃可爱长大的小学妹 提交于 2019-12-19 05:23:09
问题 According to Apple's press info about the release of iOS 8.2 and Xcode 6.2 found here, they mention developers being able to use the new technologies presented with the Apple Watch: With the iOS 8.2 beta SDK, developers can now start using WatchKit to create breakthrough new apps, Glances and actionable notifications designed for the innovative Apple Watch interface and work with new technologies such as Force Touch, Digital Crown and Taptic Engine . After combing through the WatchKit

Is it possible to customize the font and appearance of a UIAlertController in the new XCode w/ iOS8?

一曲冷凌霜 提交于 2019-12-19 04:47:17
问题 I'm wondering if it's possible to customize in app alerts with the UIAlertController. I haven't seen anything that explicitly says that you can. Does anyone know of a way I can add a custom appearance, particularly with fonts on these alerts? 回答1: You can do it with appearanceWhenContainedIn. To set up background color, here's an example: [[UIView appearanceWhenContainedIn:UIAlertController.class, nil] setBackgroundColor:[UIColor yellowColor]]; Or tint color: [[UIView

iOS8 AVAudioEngine how to send microphone data over Multipeer Connectivity?

爱⌒轻易说出口 提交于 2019-12-19 03:22:29
问题 I want to send microphone audio data over Multipeer Connectivity (iOS 8) and play it through the speaker of the receiving peer. I've also setup the AVAudioEngine and I can hear the microphone data from the (upper) speaker output, but I don't know how to send AVAudioPCMBuffer over the network. Here's my code snippet: AVAudioInputNode *inputNode =[self.engine inputNode]; AVAudioMixerNode *mainMixer = [self.engine mainMixerNode]; [self.engine connect:inputNode to:mainMixer format:[inputNode

UISearchController makes the controller black

纵饮孤独 提交于 2019-12-18 19:47:23
问题 I am using UISearchController in iOS 8 with the following intializaiton in viewDidLoad of a view controller embedded in a tab controller _searchController = [[UISearchController alloc] initWithSearchResultsController:nil]; _searchBar = _searchController.searchBar; [_searchController.searchBar sizeToFit]; _searchController.searchBar.delegate = self; _searchController.searchResultsUpdater = self; _searchController.dimsBackgroundDuringPresentation = NO; _searchController

Prevent custom keyboard in textfield

六月ゝ 毕业季﹏ 提交于 2019-12-18 19:04:29
问题 I was experimenting with how a custom keyboard affects my app. I installed Swype on my iPhone 6. I find that in some of my views where I have custom inputView property set on a text field, the Swype keyboard is overriding and presenting instead of my picker. This completely breaks my UI and cannot be allowed. Is there a way to explicitly tell iOS 8 only to use the inputView I have set? Is this a bug, perhaps? It is not at all expected behavior to allow a third party to override my input spec?

Detect if device properly displays UIVisualEffectView?

China☆狼群 提交于 2019-12-18 19:04:29
问题 My app utilizes UIVisualEffectView to blur the background just like Control Center. But I discovered the iPad 2 (and Retina iPad) which can run iOS 8 isn't powerful enough to display that effect so it reverts to a gray color. I would like to be able to detect if the device the app is running on is powerful enough to display the blur effect, and if not I won't apply it, instead I'll change the background color to something that looks much better than that gray color. But I don't want to just

App installation failed

拟墨画扇 提交于 2019-12-18 18:58:14
问题 In Xcode 6 Beta 5 , when I attempt to run my app after building, I receive an error dialog that says: App installation failed Could not inspect the application package. This happens on iOS 8 Beta 5 , but not on iOS 7.1.1 ! I have not tested anything else. Any ideas for how I can fix this? 回答1: I had this problem. Solution is to uninstall the app. Then clean project and then install app. 回答2: I solved it by uninstalling(removing) the application from device manually and Run xcode application

AVSpeechUtterance - Swift - initializing with a phrase

让人想犯罪 __ 提交于 2019-12-18 16:48:21
问题 So I'm just trying to use the AVSpeechSynthesizer with Swift. I cannot figure out how to set the phrase for the AVSpeechUtterance. @IBAction func buttonSpeakClicked(sender:UIButton) { var mySpeechSynthesizer:AVSpeechSynthesizer = AVSpeechSynthesizer() var myString:String = "This is the phrase to say" var mySpeechUtterance:AVSpeechUtterance = AVSpeechUtterance(string:myString) println("\(mySpeechUtterance.speechString)") println("My string - \(myString)") mySpeechSynthesizer .speakUtterance

Unable to cast UIImage in swift iOS 8 Extension

ぃ、小莉子 提交于 2019-12-18 16:09:13
问题 I have a strange problem, I am trying to build an action extension that will scan barcode from the image provided. Here is the code. override func viewDidLoad() { super.viewDidLoad() // Get the item[s] we're handling from the extension context. // For example, look for an image and place it into an image view. // Replace this with something appropriate for the type[s] your extension supports. var imageFound = false for item: AnyObject in self.extensionContext!.inputItems { let inputItem =

How to get current location latitude and longitude in IOS SDK 8.0

丶灬走出姿态 提交于 2019-12-18 15:54:36
问题 how to get current location latitude and longitude. I have try this. Using Xcode 6.01 and IOS SDK 8.0 -(CLLocationCoordinate2D) getLocation{ locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; locationManager.desiredAccuracy = kCLLocationAccuracyBest; locationManager.distanceFilter = kCLDistanceFilterNone; [locationManager startUpdatingLocation]; CLLocation *location = [locationManager location]; CLLocationCoordinate2D coordinate = [location coordinate];