A friend of mine is a very talented artist, he is specialized in comics books and every time I see him drawing something it feels like something magic is happening to me. Some time ago he gave me some drawings in order to try to build an eBook with Creo so I decide to write this post in order to show how easily a simple eBook app can be created.
4. We want our app to be Landscape and without a StatusBar, so from Window inspector set StatusBar to Hidden and then press “cmd+right arrow” to rotate the window in landscape mode. (Then press cmd+0 (zero) to zoom to fit screen if you want).
All done on custom view side so let’s switch to Window1.
11. In PageContainer inspector:
- IMPORTANT: there is a bug in version 1.0b1 Build 4558 that could lead to a crash, as a workaround just change Style to PageScroll (this bug has already been fixed in the upcoming b2 version).
- Select CustomView1 as Template
- Select Assets as DataSet (each folder inside Assets or Documents is automatically exposed as a DataSet), and KeyPath is automatically filled with Assets.Pages (Pages is the name of the folder that contains my images collection).
Here you go a video that shows you how the app runs inside the simulator and inside a real device using Creo iOS dev player app.
- Creo builds universal app so if you want to test on a iPhone just adjust PageContainer autoresizing mask.
- PageContainer is a very powerful control that enables you to create pages using a custom view and a dynamic source like a DataSet.