xcode7

How to record landscape video in a portrait application? (Swift 2, iPhone)

邮差的信 提交于 2019-12-19 04:44:14
问题 I need to record a landscape video inside my portrait iPhone application. Is it possible or is it blocked by any hardware limitation? Using AVCaptureVideoPreviewLayer I was able to change the preview orientation, but the video is still recorded in Portrait. Any idea is welcomed! 回答1: You should be able to set the orientation to landscape for the video recording. And set the preview layer to portrait to achieve a landscape video that is previewed in portrait. If I understand your question

Drag and reorder - UICollectionview with sections

梦想的初衷 提交于 2019-12-19 03:57:33
问题 Is that possible to do drag and reorder from one section to another section from collectionview - iOS 9. Every time am dragging from 1st section to drop at 4th section am getting below crash, Assertion failure in -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering: func collectionView(collectionView: UICollectionView, moveItemAtIndexPath sourceIndexPath: NSIndexPath,toIndexPath destinationIndexPath: NSIndexPath) { let sequence = ArrayrelatedSequence

How to implement the new Core Data model builder 'unique' property in iOS 9.0 Beta

[亡魂溺海] 提交于 2019-12-19 00:57:12
问题 In the WWDC15 video session, 'What's New in Core Data' at 10:45 mins (into the presentation) the Apple engineer describes a new feature of the model builder that allows you to specify unique properties. Once you set the those unique properties, Core Data will not create a duplicate object with that property. This is suppose to eliminate the need to check if an identical object before you create a new object. I have been experimenting with this but have no luck preventing the creation of new

Major Bug, Sprite Atlas created in XCAssets Folder does not support batch rendering

随声附和 提交于 2019-12-18 17:03:05
问题 I started using the new Sprite Atlas in the XCAssets folder instead of having my atlases in the project folder. However I noticed that when I did this my nodes were no longer being batch rendered which resulted in a large number of inefficient draw calls. This completely defeats the purpose of using an atlas! To be clear this is the code I used to get the atlas. let atlas = SKTextureAtlas(named: "Sprites") "Sprites" is a Sprite Atlas created in the XCAssets Folder. Does anyone have a

What is the LLVM version bundled with Xcode?

一个人想着一个人 提交于 2019-12-18 15:06:54
问题 Up to Xcode 6 when typing clang --version we got the information on what LLVM version it was built: Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) But now with Xcode 7 we only get the following: Apple LLVM version 7.0.0 (clang-700.0.72) 回答1: See https://gist.github.com/yamaya/2924292 in which an interesting comment says: Looking at the sources (src/CMakeLists.txt), it appears AppleClang is based on (approximately) the following LLVM branches: clang-700.0.72 => LLVM 3.7.0

Install app on iOS without Apple Developer Program (Xcode 7)

纵饮孤独 提交于 2019-12-18 13:19:54
问题 On June 8th, Apple announced that with Xcode 7, everyone would be able to install any apps they develop on their devices without an Apple Developer Program Certificate. The Apple Developer website says you only need to log in with your Apple ID. I already did that on Xcode, but every time I try to run an app on my iPad, this happens: I've been looking through the Apple Developer website on any instructions on how to do this, but I have not found anything. Does anyone know how to solve this

UITableView - Multiple selection AND single selection

陌路散爱 提交于 2019-12-18 13:16:23
问题 I have 2 sections in my UITableView. I want the first section to allow multiple cell selection and the second section to allow only single selection. I tried some code but didn't work very well. Code in swift if possible. Thank you. 回答1: Perhaps you could implement the table view's delegate methods: tableView(_:shouldHighlightRowAtIndexPath:) and tableView(_:didSelectRowAtIndexPath:) ...and determine (from indexPath.row and indexPath.section ) if the relevant section supports single/multiple

Push notifications are not working in iOS 9

旧时模样 提交于 2019-12-18 12:58:05
问题 I have upgraded my devices to iOS 9 and my Xcode environment to 7.0 beta. Push notifications are not working in iOS 9? Here is my code: float ver = [[[UIDevice currentDevice] systemVersion] floatValue]; if(ver >= 8 && ver<9) { if ([[UIApplication sharedApplication] respondsToSelector:@selector(registerUserNotificationSettings:)]) { [[UIApplication sharedApplication] registerForRemoteNotifications]; UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:

“Invalid Swift Support - The SwiftSupport folder is missing” with Xcode 7.3.1

天涯浪子 提交于 2019-12-18 12:57:05
问题 After submitting an app update using Application Loader, I got this email from Apple: We have discovered one or more issues with your recent delivery for "[App Name]". To process your delivery, the following issues must be corrected: Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it. Once these issues have been corrected, you can then redeliver the corrected binary. I have confirmed that this binary was

Xcode 7 will NOT build a valid Archive from the same project that builds a valid archive in Xcode 6

老子叫甜甜 提交于 2019-12-18 12:24:44
问题 When using Xcode 7b5 to build my app that contains a Today Extension I cannot create a valid archive. When I make an archive the build succeeds and then in Organizer it shows up under "Other Items" instead of under "iOS Apps". If I close the project and open up the same project in Xcode 6.3.2 when I make the archive it shows up under "iOS Apps". I compared the archives and the one thing I noticed is that my Today Widget is being placed outside of the Applications directory. The structure