上QQ阅读APP看书,第一时间看更新
Chapter 4. Interactive E-book for iPad
In this chapter, we will be developing an interactive electronic book (e-book) application with realistic page flipping, pretty much like a real book. This will be an iPad-specific application in order to benefit from the large screen resolution offered by a tablet display. We will be using WebView
, along with HTML and CSS to present a rich experience. We will also be using other rich view components such as MapView
to show a satellite imagery and a video player.
Since Titanium does not provide "page flipping" functionality out of the box, we will rely on a native module to achieve our goal. We will get more into that later on in this chapter.
By the end of this chapter, you will have learned the following concepts:
- What a native Titanium module is
- Installing, configuring, and using a native module to your existing project
- Using the
WebView
component - Using the
MapView
component - Using the
VideoPlayer
component - Locking the screen's orientation