Hello,
Is it possible to add multiple CinderViewCocoaTouch
(s) to an iOS application. I’ve taken a look at the NativeControls
sample and it has an example on how to add the “main” ci::app::
window as a subview (UIBarButtonItem
in that example). Is it possible to create new cinder UIView
(s) and if so how would I go about doing that.
I’m basically trying to create a UICollectionView
list of cinder
windows/views that do their own separate “clipped” drawing.
Tried doing something like this:
CinderViewCocoaTouch* anotherView = [[CinderViewCocoaTouch alloc]
initWithFrame: CGRectMake (0.0f, 0.0f, 100.0f, 100.0f)
app: (AppCocoaTouch*) app::AppBase::get()
renderer: app::AppBase::get()->getDefaultRenderer()
sharedRenderer: nullptr
];
But that didn’t work. I might be missing more setup for the view to actually work, any help or hint on where to look would be much appreciated.
Thank You