Beginning iOS Media App Development 无水印pdf

所需积分/C币:15 2017-09-25 14:59:54 13.11MB PDF
11
收藏 收藏
举报

Beginning iOS Media App Development 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Contents at a Glance About the author…uuX About the technical reviewer XVI Acknowledgments XIX Introduction… ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ Chapter 1: Welcome to iOS Media App Development Part I: Images RBBRRRLLRRIERIE ■■■■■■■■■■■■■■■■■■■■■■■■■■I ■■■■■■■ 23 Chapter 2: Adding Images to Your App mma mmaamamnmama. 25 Chapter 3: Doing Useful Things with Your Images 49 Chapter 4: Advanced Photo Interfaces g73 Part audio 113 Chapter 5: Playing and Recording Audio Files amammmmmmm mn 115 Chapter 6: Using External Audio SourcesmmmRBBRRBRRRIB IRER. 145 Chapter7: Advanced audi0 Topics,,,,,,,…,,,,,…,…,…,,…171 www.it-ebooks.info Contents at a glance Partl:Videonnaaa197 Chapter 8: Playing and recording video mammea. 199 Chapter 9: Building a Custom video-Playback Interface 225 Chapter 10: Building a Custom Video-Recording Interface mmm RRIRRRIn 255 Part IV: ioS8 and beyond g293 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ Chapter 11: User Interface Development with Xcode 6. ng295 Chapter 12: Using the AvKit Framework for Media Playback nmmmmmmmmmammmmmmam 317 Chapter 13: Tracking Fitness with Chapter 14: Getting Started with Swift aaaIn 375 Index 401 www.it-ebooks.info Introduction Do you remember the first time you experienced multimedia on a computer? Was it the carefully orchestrated town music of The Oregon Trail on an Apple l? Or maybe it was a You tube video of a talented feline playing a catchy tune on a keyboard? hat about when you started to get into programming? Was it to make a game? Or perhaps emulate the exact tone of the school bell so you could get out of class early? For many people, multimedia has been one of the most exciting and personal aspects of computing For some of us(myself included), it was an inspiration to learn programming the lure of multimedia has not changed as computing has become mobile, but fortunately, it is now easier than ever to get started making your own multimedia apps iOS provides an incredibly deep set of APis(application programming interfaces )that allow you to display and capture photos, videos, and audio within your apps. These aPis are built directly into Cocoa Touch, meaning you do not need to include any external libraries to use them. For many of the APls, including the camera, the capture interface exposed in your app is the same one used throughout the system. This is a great improvement over the "good old days, when integrating a camera may have required talking to your component manufacturer for several weeks and porting sample code The goal of this book is to help you take what you already know about iOS app development and apply it to media app development. One of the great things about Cocoa Touch is how much Apple has abstracted low-level functionality for you. You can now build apps that let you play video without having to become an expert on video codecs By building apps that focus on specific APIs, and picking up new programming concepts along the way, you will make incremental progress and avoid being overwhelmed by the seemingly infinite set of APls available in ioS. the units in this book(photo, video, audio) begin by showing you how to get started with the relevant aPls and then peel back the layers, allowing you to customize your apps beyond the basic features provided out-of-the-box You have already accomplished a lot to be far enough in your ios development journey, and l'm glad you've decided to start looking into multimedia features. Let's go the extra step together and build some amazing media apps! www.it-ebooks.info Chapter Welcome to iOS Media app Development What Is the Purpose of This Book? This book is an in-depth guide to ios media app development, targeted at beginning-to intermediate-level ios developers. In this book, you will learn how to build apps that take advantage of iOS's programming interfaces, or APls, for capturing, displaying, and manipulating still images (photos), videos, and audio resources. The last part of the book covers new functionality, including the Swift programming language, Which Apple introduced in iOs 8 In presenting these topics, I have taken some cues from tutorial-based guides, which introduce you to topics by providing you with code snippets. However, this book goes deeper than typical tutorials by introducing background information, presenting discussions on implementation challenges, and providing keystone projects to reinforce your new knowledge. These keystone projects frame each chapter by giving you a full-fledged application that takes advantage of the features covered, as well as lessons from other popular applications. By building a real application, you will gain a deeper understanding of the software design process, and more experience with tackling implementation challenges-often the hardest part of finishing an app You may have already tried developing an app but stopped, or have friends in the same position One of the most famous complaints about ios development is that it is too limited in what it allows you to do. Although there is some truth to this statement, in that the ios platform forces you to develop apps "in a sandbox and hides access to many otherwise common features, such as a global file system, many of these complaints come from having to develop for Cocoa Touch, an extremely platform-specific framework Programming for a framework allows you to take advantage of many features for free, such as drawing a view or instantiating a media player, but the cost is the time required to learn the framework and its limits. Furthermore, the sheer number of frameworks iOS provides can be daunting to newcomers, who feel they need to become familiar with all of them before they can get started. This book will help you build media apps by focusing on the ios media frameworks and the skills you need to use them www.it-ebooks.info 2 CHAPTER 1: Welcome to ioS Media App Development Several guides to ios development exist that briefly touch upon ioS media app development, but feel that they provide only cursory glances at the material. Similarly, Apple provides excellent documentation for its apis but the wording and level of technical depth can be intimidating this guide complements the two by providing specific information with an accessible approach What Makes Media App Development Different? It can be hard to sum up all the skills required to be an app developer, but i define an ios media app developer as a person with an in-depth knowledge of iOSs media features and the ability to apply this knowledge to create products. To be successful in this role you need to be able to do more than just"make it work. You need to be able to use your knowledge to identify design approaches, point out problematic requirements, and debug problems in the field My goal is to build up your background knowledge without making the experience overwhelming It is important to build up a large base of knowledge to draw upon but it is equally important to Comprehensive API references and pure problem-solution approaches are extremely valuable for o present that knowledge base in a way that allows you to retain it or quickly return to it as a referen fixing specific problems, but do not provide a clear path for learning. As a media developer, you will be expected to master several frameworks, each with its own set of requirements and prevailing design patterns or suggestions on how you should write your code. Through the discussions in this book, which build in complexity, I provide you with a guide you can follow at your own pace, yet still use as a reference Although it is extremely important to understand everything a framework can do, is equally important to understand the limits of a framework. Many times, you will be asked to implement a feature, but upon further research you will realize that it is not possible or would require more effort than the project budget or time allows. You may also discover that you can cover 90 percent of your use cases with one approach, which is faster than the approach that would cover 100 percent of the use cases To be successful as a media developer, you have to identify these problem areas and possible solutions quickly, and communicate them to the correct decision makers. One particularly challenging aspect of being a media developer is that the media frameworks are among the most complex frameworks in Cocoa Touch. They also place some of the strictest requirements on implementation. The discussion material and keystone projects in this book will expose you to these limitations and show you how to address them to build working products Depending on whom you ask, the most exciting part of any development cycle is debugging Your video player may work great in portrait mode, but then suddenly start dropping frames as soon as the user rotates the device. To figure out the root of this problem, you would need to use tools to generate data points, and then tie those data points back to a cause. Throughout your career, you will notice the same problems repeated in many projects. Having the experience of identifying the root cause of a problem enables you to quickly identify and fix it the next time it comes up. As you begin to debug media apps, you will notice that due to the sensitive nature of their operations (such as smooth video playback), they are the most prone to resource-based problems and strict configurations. More than anywhere, this is where you will get your real training on Xcode's Instruments. My goals with the advanced topics and discussion sections are to expose you to common root causes of problems, walk you through the process of using the tools you need to identify them, and explain how the data the tools produce will help you resolve such problems www.it-ebooks.info CHAPTER 1: Welcome to iOS Media App Development As a media developer, you may find yourself in the role of an " encyclopedia"for media programming topics-but that role also carries the responsibility of applying that expertise to the design process and being the " go-to guy "(or gal)for issues with the media-related code. This book will not only help you retain what you learn, but also make you aware of the pitfalls sooner rather than later. What do i need to know to use this book? This book is both accessible to beginners and relevant for advanced programmers. Because the focus is on media app development, I am assuming you've had at least a cursory introduction to the following Core programming concepts(object-oriented programming, pointers, functions) Core ios development topics (Xcode, Interface Builder, Cocoa Touch) ■ Objective- C syntax Based on these assumptions, I use language from this core knowledge base as part of the natural writing style of this book. This will allow the experienced to feel right home, while also giving beginners valuable experience with the terminology used in the field. For additional help i recommend the books listed in table 1-1 Table 1-1 recommended references Topic Title and Author Introductory ioS development Beginning iOs 7 Development by James Nutting, Fredrik Olsson David Mark, Jeff LaMarche(Apress, 2014) Using Xcode and the debugger Beginning Xcode by matthew Knott (Apress, 2014 Intermediate ios development Learn iOS 7 App Development by James Bucanek(Apress, 2013) Objective-C syntax Beginning Objective-C by James Dovey and Ash Furrow(Apress, 2012 IalsorecommendreferringtotheioSDeveloperLibrary(https://developer.apple.com/library/ ios/navigation/). As Apple's official resource for iOS API documentation, the Developer Library is updated with every release of the SDK. You need to keep a constant eye on the sDK version because methods are often updated or removed. Be sure to use the document version that matches your SDK. You can find the documentation for older sdK releases under the retired Documents Library link, shown in Figure 1-1 www.it-ebooks.info CHAPTER 1: Welcome to ioS Media App Development a Apple Inc. Passat EAGLContext Class Reference Reference Graphics Animation OpenGLES 2014-07-15 Minor Change Social b EAAccessory Manager class Reference Reference Data Management 2014-07-15 Storekit Device Information Minor Change SystemConfiguration Cryptographic Services Guide Guides Security Security 2014-07-15 AUTomation Minor Change Core os Layer Core Image Reference Collection Reference Graphics Animation Corelmage 2014-07-15 Accelerate Core Bluetooth b Core Image Filter Reference Reference Graphics Animation Corelmage 2014-07=15 ExternalAccessory Minor Change Security Core Data Programming Guide Data Management Core Data 2014-07-15 System Minor Change Collection View Programming Guide for ios Guides User Experience UIKIt 2014-07-15 windows Views Minor Change For older documents not applicable fo CIFace Feature Class Reference Reference Corelmage 2014-07-15 current development, see inor Change Retired Documents Ubrary CGColorSpace Reference Reference cs& Animation Core Graphic 2014-07-15 Minor Change CFMutableAttributedString Reference Core Foundation 2014-07-15 Strings, Text, &Fonts Minor Change CAKeyframeAnimation Class Reference Reference Quartz Core 2014-07-15 Bundle Programming Guide Guides Data Managemen Foundation 2014-07-15 File Management ange AVPlayerLayer Class Reference Reference AVFoundation 2014-07-15 Minor Change AVAudioRecorder Class Reference Reference AVFoundation 2014-07-15 Minor Change AVAsynchronousKeyvalueLoading Protocol AVFoundation 2014-07=15 Minor Change AVAssetwriterinput Class Reference Reference Audio Video AVFoundation 2014-07-15 AV Foundation Audio Settings Constants Reference AVFoundation 2014-07-15 Figure 1-1. Finding legacy iOS documentation Caution Apple also maintains prerelease documentation for beta releases of iOS. These are a good reference for bleeding-edge development, but are not recommended for production, as they are constantly in flux and their accuracy is not guaranteed In an effort to offer a streamlined comprehensive experience the book is divided into four units images, audio, video, and advanced media topics To make the content flow in a natural manner have organized the content using the following structure Part 1: Background information and core frameworks Part 2: Intermediate framework applications Part 3: Advanced implementations(including lower-level code) www.it-ebooks.info CHAPTER 1: Welcome to iOS Media App Development 5 For beginning developers, I recommend starting with the first chapter of each unit and working your way into the later chapters as you gain more familiarity with the concepts For intermediate and advanced readers i recommend using the first chapter for a quick introduction to the unit and then diving directly into the topics you are interested in within the later chapters What doi need to get started? As with traditional ioS app development, to get started in ios media app development, you need an Intel-based Mac running OSX 10.9 or later(Mavericks)and the latest version of Xcode and the iOS SDK from the Mac App Store. As part of the App Store submission process, Apple checks to make sure your binary is compiled on a valid"computer and sDK version While it may seem like an annoying step, it helps ensure that applications are compiled against a common standard eliminating crashes caused by the compiler. The easiest way to stay up-to-date on both is by downloading them from the Mac App Store Note You can find old versions of Xcode on apple's developer site but keep in mind that you need to use a current version to submit to the App store Unlike traditional iOS app development, iOs media app development places a strict requirement on testing with hardware devices. When you started in ios development, you may have noticed that a lot of features you were trying to implement could easily be tested with the simulator alone Unfortunately, many of the features we will be programming for in this book(for example, taking pictures and audio recording) are not supported by the simulator and must be tested with a physical device. Additionally, testing on the simulator will give you compatibility errors for some features The suite of hardware devices to keep on hand for testing depends greatly on the range of devices you need to support. In general, you should do your core development on a device that is in Apple's latest tick-tock cycle(for example, iPhone 5 or iPhone 5S that is running the latest version of iOS In your test cycle, you should also have access to a device running an older supported ios version (for example, iOS 6.1), and a device with an older hardware specification (for example, iPhone 4S) I do my core development on an iPhone 5 and iPad Mini with Retina Display, and when I reach the testing phase, I use an iPad 3 running ios 6. 1 and borrow a friend's iphone 4S. Having a mix of devices and system versions enables you to identify the widest range of compatibility issues before Apple does during the App Store approval process An Active iOS Developer Program Account Is Required to Use This book on an iPhone)require you to tether a device to your development computer. apple does not allo p Many of the APIs you will need to use in this book (for example, for assessing the hardware camer you to simulate hardware cameras or audio recording devices through the simulator. Attempting to call these APIs from the simulator will cause your samples to crash www.it-ebooks.info

...展开详情
试读 127P Beginning iOS Media App Development 无水印pdf
立即下载 身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
  • 至尊王者

关注 私信
上传资源赚钱or赚积分
最新推荐
Beginning iOS Media App Development 无水印pdf 15积分/C币 立即下载
1/127
Beginning iOS Media App Development 无水印pdf第1页
Beginning iOS Media App Development 无水印pdf第2页
Beginning iOS Media App Development 无水印pdf第3页
Beginning iOS Media App Development 无水印pdf第4页
Beginning iOS Media App Development 无水印pdf第5页
Beginning iOS Media App Development 无水印pdf第6页
Beginning iOS Media App Development 无水印pdf第7页
Beginning iOS Media App Development 无水印pdf第8页
Beginning iOS Media App Development 无水印pdf第9页
Beginning iOS Media App Development 无水印pdf第10页
Beginning iOS Media App Development 无水印pdf第11页
Beginning iOS Media App Development 无水印pdf第12页
Beginning iOS Media App Development 无水印pdf第13页
Beginning iOS Media App Development 无水印pdf第14页
Beginning iOS Media App Development 无水印pdf第15页
Beginning iOS Media App Development 无水印pdf第16页
Beginning iOS Media App Development 无水印pdf第17页
Beginning iOS Media App Development 无水印pdf第18页
Beginning iOS Media App Development 无水印pdf第19页
Beginning iOS Media App Development 无水印pdf第20页

试读结束, 可继续阅读

15积分/C币 立即下载