Best way to incorporate native UIKit-Subclasses classes into a custom TiModule
Hi there,
currently, i want to port some iOS native code into a custom TiModule. My original code contains a UIViewController and a UIView (no Titanium SDK integration yet, just plain iOS-SDK). The code works well, when being compiled and run in Xcode.
Now i need to know what is the best practice to incorporate the existing code into a custom TiModule. I prefer not to rewrite my UIViewController and UIView to subclasses of TiUIViewController/TiUIProxy/TiUIView. I think it would be less work to implement some sort of adapter using the Ti-Classes.
I already tried to instantiate the UIViewController from a TiUIView (with its own TiUIProxy) in my TiModule and then add the UIViewController's view to the TiUIView. The bad thing about it is, that UIButtons and UITextFields/UITextAreas inside my UIView get overlayed with some other views that are layed out by the Ti-SDK, so touch-interaction with the UIView and its subviews just isn't possible.
Can anyone recommend a way to achieve the goal without having to rewrite my UIKit-Classes into Ti-Classes? Any help would be greatly appreciated. Thanks in advance.
2 Answers
-
This is exactly what I need to know too!
-
Any Luck on this I also need the same thing to work.