I am in the process of trying to create an app that focuses on editing video in Swift. I was wondering if there are any video editing frameworks out there for Swift with documentation somewhere? I know that, in Objective-C, there is AVFoundation, but is there an equivalent for Swift?
You just need to add the import statement to the top of your Swift file to use it (the same for all frameworks) in this case:
import AVFoundation
Related
I want to know how to create a custom tvOS screensaver. Ideally in Swift. If there is no such thing yet (macOS has ScreenSaverView for example) please tell me if there is another way to create a custom screensaver
No that is unfortunately not possible to do today with tvOS. You have to use the built-in ones.
I am writing a swift playgroundbook on my MacBook, and I was wondering if it is possible to add tutorial animations between chapters like Apple does in "Learn to Code".
To create cutscene animations, make an HTML document and place it in Manifest.plist
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am a swift newbie. I have an old app in obj-c, I would like to translate it to swift. Despite what I read, I am not quite sure how to use the convert to swift feature in Xcode. Can some one give me some guidances? Thanks. I am mainly confused about how the .h and .m on the obj-c side merge into one .swift file. In the .h file, I have a lot of variables and IBOutlets and IBActions declared. How does these all translate to the swift side. Thanks
AFAIK there is no convert Objective C to swift code feature in Xcode. There is only a convert from Swift X to newer Swift Y features.
That said. The .h file is the header file of your objective c. These are the methods and properties that other objects in your code can call on that specific class.
Swift has a similar feature but its all in the Swift file. If you mark a function as private then its roughly equivalent to a method being in the .m file but NOT in the .h file.
However, when you're just getting started with swift, don't sweat it too much. Use the default func declaration in place of -( declaration in objective c and just forget about the .h file for now. This will expose all functions and properties as if they were in the .h file in Objective C. But while you're getting started, thats the easier, more permissive way. Once you get more experienced you can start marking functions and methods as private and then they will no longer be exposed to other parts of your code.
I have a project for tvOS written in Swift. Now I received a TVML document that I need to use in my project. What should I do? Can I initialise a UIViewController instance with a TVML document?
TVMLKitchen helps to embed TVML documents in tvOS apps written in Swift. It has everything that I need to solve my problem and it is easy to use. I hope that it will be useful for all tvOS developers.
M a new comer to iPhone world ,i want to use NSComboBox(DropDown list somewhere) in my application. but not having any idea....m totally blank about NSCombobox...could any one guide me..Thank you.....
The iOS Cocoa Touch framework doesn't include anything like an NSComboBox. You might want to look into using the combination of a UITextField plus a "pop-up" UIPickerView for list selection.
NSComboBox does not exist on the iPhone. It's part of the AppKit framework, which means it only exists on the Mac. The iPhone's GUI framework is called UIKit.
You could always write your own.
Maybe you open wrong project style. Because NSComboBox is under Mac Application.
You should use project for iPhone application.