Hi,
I try to build a pageflip based app with tiles in the pages. It seems as if I can only add primitive UI elements like views, imageviews, maps, label, but no hierarchy of it.
Here my code of pageflip:
var pages = []; for (var i = 0; i < 7; i++) { pages[i] = require('ui/page_with_tiles')(i + 1); } var pageflip = PageFlip.createView({ transition : PageFlip.TRANSITION_FLIP, transitionDuration : 0.3, pages : pages }); win.add(pageflip);and here the content of module:
var Module = function(_page) { var self = Ti.UI.createView({ backgroundColor : '#78C6E4' }); self.add(Ti.UI.createImageView({/* some params*/})); self.add(Ti.UI.createLabel({ bottom : 10, height : Ti.UI.SIZE, text : 'Page: ' +_page, color : 'white' })); return self; }; module.exports = Module;After starting of app I see only the background color of 'self', Label and image view I cannot see. But on the rotating spinner in status bar I see,the app retrieves images from net …
I found 'MPFlipViewController' as iOS Library. This module works with child views.Is there a Titanium transformation?
Cheers!
Rainer