ios9

How to use AVCaptureSession with Slide Over and Split View in iOS 9?

邮差的信 提交于 2020-01-11 15:48:21
问题 My team is developing a set of SDKs for barcode scanning, ID scanning and OCR. We use device's camera, specifically, AVCaptureSession , to obtain video frames on which we perform our processing. We're exploring new iOS 9 multitasking features Slide Over and Split View. Apple suggests opting out of these features for camera-centric apps, where using the entire screen for preview and capturing a moment quickly is a primary feature (reference). This is the approach the use in their sample app

Xcode 7 iOS9 font no longer recognized

一笑奈何 提交于 2020-01-11 13:11:30
问题 For iOS 7/8 when setting a text's parameters programmatically, it would display as expected when compiled/built to run on device. However, when testing my app for iOS9 in Xcode 7 all my views' frames are off or just plain not visible due to the text.font not recognizing the font. It's not a custom font per se, it's in Apple's library, and in fact, when you set a label via IB it displays properly, but when doing the same thing in code it simply displays the system font. Any ideas how to

GKMatchmaker findMatchForRequest invite never received

喜你入骨 提交于 2020-01-11 08:51:17
问题 I'm trying to invite nearby players to a match, but the invite is either never sent or never received. GKMatchMaker startBrowsingForNearbyPlayersWithHandler works and returns nearby players that are on same wifi, but then I use findMatchForRequest and it returns a match without any players, and the players I try to invite never receive an invite notification. Here is my code. I start by authenticating the local player: GKLocalPlayer.localPlayer.authenticateHandler= ^(UIViewController

MPMoviePlayer in iOS 9

两盒软妹~` 提交于 2020-01-10 04:47:16
问题 i have made a function in iOS 8 to play a movie in the background and now when i want to use it in iOS 9 it gives me a warning and says that it best not to use MPMoviePlayer and instead use AVPlayer. but i don't know anything about AVPlayer. how can i convert this to a proper function without warning that uses AVPlayer instead of MPMoviePlayer? heres the func : func playVideo() ->Bool { let path = NSBundle.mainBundle().pathForResource("video", ofType:"mov") //take path of video let url =

how to call function after every 1 hour?(Swift). Background fetch work when app is terminated?

允我心安 提交于 2020-01-10 02:59:33
问题 i am making app. which providing functionality of fetch data after every one hour. so even when my app terminate how can i call that function? after too much searching i found Background fetching by performFetchWithCompletionHandler but i want to know that this function will work if my app is terminated?what i mean is if my app is in closed or terminated state how can i call function automatically? 回答1: You can't do anything if your app is in terminated state. Apple is not allowing anything

iOS 9, 10 CoreData: Failed to load optimized model at path

我们两清 提交于 2020-01-10 02:05:39
问题 I have created new version of CoreData model and migrated existing one to it. Application works without any issues on iOS 9+, but for iOS 9 and 10 I am getting this error: 2017-10-22 19:28:37.081 CafeManager[16654:1918728] CoreData: Failed to load optimized model at path '/Users/dj-glock/Library/Developer/CoreSimulator/Devices/A81AA9C4-7B59-4422-BA0A-0FD0D1A05205/data/Containers/Bundle/Application/DD66571C-4EB6-4A8B-A99B-B447DD0FFFBA/CafeManager.app/CafeManager.momd/CafeManager v2.omo' iOS 10

Xcode 8 Core Data Template for iOS 8,9

二次信任 提交于 2020-01-09 08:51:08
问题 I'm developing an app in a new Xcode 8 and I noticed an obvious thing. Xcode generated me Core Data with the latest API references. So if I change deployment target to iOS 8 or 9, it conflicts and propose me to take in brackets: AVAILABLE my Core Data code. That means I have to write from scratch Core Data code from previous API. Does anybody have template for AppDelegate with both of them or maybe it's possible to make Xcode generate them? Thanks in advance! 回答1: Because no one should have

iOS 9 View Not appearing

孤者浪人 提交于 2020-01-07 03:05:59
问题 I have noticed a that a uibutton is not showing in my app when run in iOS 9 (works fine in earlier OS versions). I know several have noticed a similar issue with storyboards (https://forums.developer.apple.com/thread/14003), though I am not using those and am instead building my view programmatically. There is no autolayout or autoresizingmask to worry about. UIButton * button = [UIButton buttonWithType:UIButtonTypeCustom]; button.frame = CGRectMake(SUG_MARGIN, self.mainView.bounds.size

iOS 9 View Not appearing

给你一囗甜甜゛ 提交于 2020-01-07 03:05:15
问题 I have noticed a that a uibutton is not showing in my app when run in iOS 9 (works fine in earlier OS versions). I know several have noticed a similar issue with storyboards (https://forums.developer.apple.com/thread/14003), though I am not using those and am instead building my view programmatically. There is no autolayout or autoresizingmask to worry about. UIButton * button = [UIButton buttonWithType:UIButtonTypeCustom]; button.frame = CGRectMake(SUG_MARGIN, self.mainView.bounds.size

Universal Links iOS

ⅰ亾dé卋堺 提交于 2020-01-06 21:03:48
问题 I am having some trouble in getting Universal links on my app working. Here are the things that i have already done. -- Created my apple-app-site-association file. Here is my file { "applinks": { "apps": [], "details": [{ "appID": "XXXXXXXXXX.com.companyName.app", "paths": ["/view/*", "/class/*"] }] } } I have not signed my file and i set my project deployment target to iOS 9.2 (so that i don't have to sign this file). -- Added the associated domain in my project capabilities applinks