This question is locked. New answers and comments are not allowed.
Hi Valio,
this is the reply to your answer to my question in the latest NativeScript webinar.
It would be cool to be able to design view controllers in Xcode in the StoryBoard editor and used them in a NativeScript application.
Other than having a quick way to design the UI of an app, we can exploit feature like Autolayout and constrains when for example when we change the device orientation.
I didn't test it year, but having access to native iOS APIs from NativeScript, I could load a ViewController from a StoryBoard using the corresponding APIs in nativescript of this Objective-C code:
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
ViewController *vc = [mainStoryboard instantiateViewControllerWithIdentifier:@"ViewController"];
and then attach to a NativeScript page, is that possible?
In objective-C I can also access also the related view and all its children (buttons, labels, tableviews, etc etc) and have access to them programmatically.
However, as far as I have understood, to manipulate any native UI elements, NativeScript creates the so-called proxies, where changing proxies properties will be reflected in native UI.
So my question: can we create NS proxies programmatically and attach them to any native UI elements coming from storyboards?
Would this be possible in the future or can you suggest me another approach to access UI elements properties?
this is the reply to your answer to my question in the latest NativeScript webinar.
It would be cool to be able to design view controllers in Xcode in the StoryBoard editor and used them in a NativeScript application.
Other than having a quick way to design the UI of an app, we can exploit feature like Autolayout and constrains when for example when we change the device orientation.
I didn't test it year, but having access to native iOS APIs from NativeScript, I could load a ViewController from a StoryBoard using the corresponding APIs in nativescript of this Objective-C code:
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
ViewController *vc = [mainStoryboard instantiateViewControllerWithIdentifier:@"ViewController"];
and then attach to a NativeScript page, is that possible?
In objective-C I can also access also the related view and all its children (buttons, labels, tableviews, etc etc) and have access to them programmatically.
However, as far as I have understood, to manipulate any native UI elements, NativeScript creates the so-called proxies, where changing proxies properties will be reflected in native UI.
So my question: can we create NS proxies programmatically and attach them to any native UI elements coming from storyboards?
Would this be possible in the future or can you suggest me another approach to access UI elements properties?