ios8

iOS 8 extension dependencies issues. Importing one project file to extension view controller

只愿长相守 提交于 2019-12-07 03:39:00
问题 I am working on iOS 8 extension. I read many manuals and all of them just show how simple add extension to your app, and seems that's enough. But here are many pitfalls: After adding your extension you will need to import some of your classes to view controller that were created when you added new extension target. The big use here that you will need add all of them and if you have huge project it's not a simple task. Solution can be select extension target then in Build Phases -> Compile

MFMailComposerViewController via UIActivityViewController error

我是研究僧i 提交于 2019-12-07 03:28:52
问题 I'm trying to open a mail composer via UIActivityViewController on iOS8. (So, there's no my own code for this procedure) The result on device is continues error logging (the messages continue to be logged even after I close mail and quit to different UI controller) AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo=0x14fd1b60 {NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} On a simulator

iOS8 Swift UISearchController hides navigationbar

陌路散爱 提交于 2019-12-07 02:48:40
问题 I implemented a search function for an UITableViewController like this: self.resultSearchController = ({ let controller = UISearchController(searchResultsController: nil) controller.searchResultsUpdater = self controller.dimsBackgroundDuringPresentation = false controller.searchBar.sizeToFit() self.tableView.tableHeaderView = controller.searchBar return controller })() The problem I've been experiencing is that if I click on it, my navigation bar and my navigationcontrollers header disappear.

Swift: Missing argument in call to argumentless extension of SequenceOf

孤人 提交于 2019-12-07 02:36:28
Can anybody see light on this bug? The playground insists that argument #2 is missing, but there is no argument #1! The intention of the code to to count the number of runs of a equatable value, and return a sequence of tuples consisting of the values and their counts. I've worked on this code extensively, optimising it and refining it until I'm pretty sure that it should work… but although it compiles, I cannot call it the way it was intended. The error i get from calling the code below is missing argument for parameter #2 in call extension SequenceOf { func CountRuns<T: Equatable>() ->

openURL doesn't work in Share extension

最后都变了- 提交于 2019-12-07 02:32:07
问题 Trying to use [self.extensionContext openURL:... completionHandler:...]; in an iOS 8 Share extension to open the containing app never opens the app, and always calls the completion handler with success = NO. Here is the same issue with Action extensions, but I think it is more reasonable for Share extensions to be able to open the containing app than Action extensions. The point of a Share extension is to upload a potentially large piece of data, and the only way to do that without opening

MPRemoteCommandCenter does nothing with MPMusicPlayerController

笑着哭i 提交于 2019-12-07 02:23:45
问题 I have been writing code that uses [MPMusicPlayerController applicationMusicPlayer] to play music. This has been working successfully and will show details of the currently playing track on the Control Center screen. Unfortunately, I can't seem to get the remote control buttons working from the Control Center screen or from the headset. I have enabled the background audio made to the app will play in the background and have enabled some of the MPRemoteCommandCenter commands using code similar

iOS 8 simulators not visible in XCode 7 beta

不羁的心 提交于 2019-12-07 02:22:55
问题 I'm using the XCode 7 beta that Apple released during WWDC2015, and it looks like iOS8 simulators are not there in it. I tried downloading them using the Xcode > Preferences > Downloads > Components, but it doesn't list the simulators. I have Xcode 6.3.2 also on the mac, and iOS8 simulators are visible there. Any ideas how to make it appear in Xcode 7? -Tejas 回答1: The release notes of Xcode 7 beta 1 state: Simulator • Xcode 7.0 beta does not support iOS 8.4 and earlier simulator runtimes.

Shared NSURLCache and UIWebView on iOS 8

狂风中的少年 提交于 2019-12-07 02:01:09
问题 In iOS 7, I was able to set a shared URL cache to a subclass of NSURLCache and any UIWebView s I created would automatically use that shared cache for each request. // Set the URL cache and leave it set permanently ExampleURLCache *cache = [[ExampleURLCache alloc] init]; [NSURLCache setSharedURLCache:cache]; However, now in iOS 8 it doesn't seem like UIWebView pulls from the shared cache and cachedResponseForRequest never gets called. Has anyone found documentation for this change, or a

Strange Exception with GameCenter

若如初见. 提交于 2019-12-07 01:34:13
问题 I keep getting this crash report from GA and users... However i cannot reproduce this exception by testing iphone5,5s,6 with both ios7 and ios8. This issue comes nowhere when application did enter to background. The strange part is that gamecenter will call spritekit, for showing achievement banner? Does anyone has the same issue? Last Exception Backtrace: 0 CoreFoundation 0x23c99e3f __exceptionPreprocess + 127 1 libobjc.A.dylib 0x31371c8b objc_exception_throw + 38 2 CoreFoundation 0x23c9f189

Hiding UISplitViewController overlay in portrait

荒凉一梦 提交于 2019-12-07 01:26:08
问题 In adopting the new UISplitViewController I'm trying to make a change a default behaviour that occurs when using the UISplitViewControllerDisplayModeAutomatic mode. When working in portrait I want the primary overlay to hide when the user triggers a push to the detail side. By default the overlay remains onscreen until the user taps over on the detail side. I've tried using the following with the delegate: - (BOOL)splitViewController:(UISplitViewController *)splitViewController