Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xib support #27

Closed
lemonmojo opened this issue Aug 7, 2015 · 11 comments

Comments

Projects
None yet
7 participants
@lemonmojo
Copy link

commented Aug 7, 2015

I have created a very basic Xcode project with a single Xib file containing a UIView with several text fields and a button. I'm not using Auto Layout or Storyboards.
In my AppDelegate I'm instantiating the corresponding View Controller and add it to my Navigation Controller.

This works fine on iOS but the only thing I get when importing the project into Visual Studio is the Navigation Controller's title - everything else is black when running on Windows 10.
I have verified that my View Controller at least gets loaded by putting a breakpoint in the viewDidLoad method which indeed gets hit.

The WOCCatalog sample works fine but I have noticed there are no Xibs included in this project.

So my question is, are Xibs (even with limitations, like no Auto Layout) supported at this stage?

@SquaredTiki

This comment has been minimized.

Copy link

commented Aug 7, 2015

Looking at the xib2nib tool it seems to be using the old XIB format (pre-version 3) for some reason for all XIBs but then the correct new format for Storyboards. Not sure if this is related.

@lemonmojo

This comment has been minimized.

Copy link
Author

commented Aug 7, 2015

@SquaredTiki Yep, the problem seems to be related to the Xib2Nib tool. I just tried invoking it from the command line and it crashes instantly. Unfortunately there's no error message coming along with the crash.

@SquaredTiki

This comment has been minimized.

Copy link

commented Aug 7, 2015

@lemonmojo Probably as a result of it looking for a key that doesn't exist. All the code needed appears to be there to make it work with the 'new' (couple of years old) XIB version as it is exactly the same format that Storyboard's use, however it hasn't been implemented.

@alexdrenea

This comment has been minimized.

Copy link
Contributor

commented Feb 12, 2016

Are there any updates in supporting Storyboards / Xibs?
All the threads regarding this seem to be really old. The roadmap states that there is "preliminary Storyboard support" and "preliminary xib support". What does this mean ?

Thank you.

@technotrance

This comment has been minimized.

Copy link

commented Feb 12, 2016

On board support to stop viruses and hacks by diplaying what kind of trojan was implemented and my repository repairs all the above and would be in the library core drawer its asking for action to be taken by showind you the diagnostics visual on your screen and programme

@nicholasgerard-msft

This comment has been minimized.

Copy link
Contributor

commented Feb 12, 2016

@alexdrenea vsimporter currently provides support for Storyboards and Xibs using xib2nib. It doesn't support all Storyboard/Xib features, but many standard use cases are supported and should convert without issue. It's worth noting, however, that Visual Studio does not currently have a Storyboard editor, so if you build your layout using Storyboards, any changes you make will have to be made on the Xcode side and then run through vsimporter again. We're also working on an updated and more capable version of xib2nib.

@alexdrenea

This comment has been minimized.

Copy link
Contributor

commented Feb 12, 2016

Thanks for the note.
My storyboard looks like was converted (no error from xib2nib) but when I run the app, I am getting a white screen (the viewDidLoad does not fire in the viewcontroller). It's what I think to be a standard storyboard with a few elements on the screen (I am using AutoLayout though).
Do you think this comes from the storyboard or should I look somewhere else?
Thanks,

@nicholasgerard-msft

This comment has been minimized.

Copy link
Contributor

commented Feb 12, 2016

@alexdrenea When you run vsimporter, do you get any error messages? And when you run your app, can you provide any of the debug output?

@alexdrenea

This comment has been minimized.

Copy link
Contributor

commented Feb 12, 2016

I didn't get any errors or warnings when I ran vsimporter.
I was able to clone the repo, compile the sources and debug my app startup.
When app is starting up, in UIApplicationMain.mm - UIApplicationMainInit it gets to a point where it tries to initialize the Storyboard ( UIStoryboard* storyBoard = [UIStoryboard storyboardWithName:storyBoardName bundle:[NSBundle mainBundle]]; ) and this returns Nil which means the rootController does not get set.

@antoine-haas

This comment has been minimized.

Copy link
Member

commented Feb 23, 2016

Storyboard support has been added in the latest release of our SDK and more enhancements were made to xib2nib tool. Please re-test your app with the latest version of the SDK.

@antoine-haas

This comment has been minimized.

Copy link
Member

commented Sep 26, 2016

@alexdrenea, please re-open the issue if your problem persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.