Now that you've set up your workspace and your sample project, make sure that you can import your framework into your sample application. Make sure that your build settings are correct, and that your project file settings are in place.
- [Instructor] Let's go ahead and start creating…our project files.…First thing's first, go ahead and create a new folder…on your desktop and call it CameraFramework.…We'll be using this to keep track of all the files…we create in our project.…After this, load up Xcode…and click on the Create a new Xcode project button.…This dialog will come up,…and if you've done iOS applications before,…you'll probably be familiar with the Single View App choice…underneath the Application section.…Scroll down a bit further…and click on Cocoa Touch Framework.…One important thing to point out here…is that we'll be working with a dynamically linked library…instead of a static library.…
There are many advantages to using a static library,…as opposed to a dynamic library,…but we're going to be sticking with the dynamic library.…The main difference you need to know…is that in a static library,…all the code you write is archived into an executable,…but only the reference code that you work with is compiled.…This can give you some advantages…
Along the way, he explains the differences and nuances between writing code for an application and for a reusable framework, as well as some of the fundamentals of AVFoundation, one of the core camera frameworks in iOS. David also shows how to refactor your code, understand Swift access control, develop an interface, and handle memory leaks, so your framework is ready to share with other developers.
- Creating your first build
- Making the camera work
- Creating a framework delegate
- Adding media
- Capturing images
- Correcting orientation
- Versioning and tagging releases in Git
Skill Level Intermediate
1. Let's Make It Work
2. Let's Keep It Clean
3. Putting It All Together
4. Track It
Tagging releases in Git2m 36s
Next steps1m 47s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.