• The eBook tutorial will show you how to use the powerful PageContainer control bounds to an Images folder. This example will also show you how to build a single Window application for iPad and how to change orientation.



1 Create a new empty Creo project and start by dragging the Images folder into the Assets folder (then press Yes to the object conversion question). eBook
2 We do not need a Navigation in this example, so remove it: eBook
3 Change device from iPhone 7 to iPad: ebook
4 Change orientation from Portrait to Landscape Right: ebook
5 Set Zoom level to "Fit To Screen" (command 0 as shortcut): ebook
6 Set Window1 Status Bar Visibility to "Hidden": ebook
7 Drag a View from Objects to Templates in order to create a new CustomView1: ebook
8 Drag an ImageView into the CustomView, resize it to fit CustomView1 size and set its Constraints as shown in the screenshot: ebook In Object Inspector set ImageView1 Mode to Aspect Fill
9 Expose the ImageView1.image property to the CustomView (as Image): ebook
10 Drag a PageContainer control from Object into Window1 and resize it to fit Window1 size: ebook What is a ContainerControl? So far we manually created the Windows for our app, so we needed to know in advance how many Windows our app will use. Most of the time this is perfectly fine but sometimes it would be really helpful to have a way to automatically creates Windows based on a DataSet and this is exactly what a ContainerControl does.

11 Configure PageContainer to have CustomView1 as Template and Assets as DataSet. You'll end up with something like: ebook
12 Press RUN and enjoy the eBook app! eBook
You can now send the app to CreoPlayer or build it and then submit to the App Store.