Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
When I go to File...New File and select iPhone View, all that I get is the .XIB file. There are no partial C# classes for me to code with. There is no .H file for XCode. If I open this file in XCode I cannot add any outlets or actions to it. Is this by design? If so, what is the intended scenario?
I would expect that by adding a new iPhone view the necessary files would be in place so that I can edit this file in XCode or use it as part of an existing controller.
iPhone and iPad View templates are for xibs-only, they aren't supposed to generate any C# code.
The ViewController templates generate code, though.
I'm not sure what the reasoning behind this is.
BTW, most of these xib templates look to have been generated with Xcode3
It it's exactly as described - it adds a new view, and nothing else. This is useful for example if you wanted a new view xib to use with an existing controller.
The one you probably want is "view with controller", which adds a view and a controller.
But how can I use this .XIB file with an existing controller? IIt seems that there is no way I can do anything with this .XIB created by the template.
The same way you use any other xib - pass it to the controller's base ctor, or use UIBundle to deserialize it.