Bug 9152 - XIB Automatically Appeared in Single View Application
Summary: XIB Automatically Appeared in Single View Application
Status: RESOLVED INVALID
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2012-12-28 01:44 UTC by Prashant Cholachagudda
Modified: 2013-01-02 11:10 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED INVALID

Description Prashant Cholachagudda 2012-12-28 01:44:33 UTC
From Rodney (Desk Case #22200)  
I manually created my own TabBarController by extending UITabBarController
to use as my RootViewController. I had no XIB files in my project and was
planning to avoid them all together, by using MonoTouch.Dialog and a
programmatically created TabBar. However somewhere along the lines I
noticed that a XIB appeared called TabBarController, and a
TabBarController.designer.cs also appeared.

Here's the possible steps to reproduce the bug.

1. Well I created a new Project -> C# -> MonoTouch -> Universal ->
Single View Application
2. Then I deled the generated xib files and related CS files leaving
only the AppDelegate.cs, Main.cs, and Info.plist in place.
3. I then created a TabBarController.cs file with a TabBarController
class that extends the UITabBarController class.
4. I then followed the documentation here:
http://docs.xamarin.com/iOS/Recipes/Content_Controls/Tab_Bar/Create_a_Tab_Bar
5. Everything was working fine, no XIB files appeared yet
6. I then went into the Project Options and changed the following:
7. Added an app name, identifier, version, set the deployment target to
5.0 (it was defaulted to 3.0 for some reason)
8. I also changed the status bar styles to black translucent, with a
tinting color of red. Visibility checkbox is not checked.
9. It was shortly after making these changes that I noticed that I now
have TabBarController.xib and a TabBarController.designer.cs file.

All this occurred within an our of creating the project and having almost
nothing but the basic 3 tabs from your documentation in the link in step 4.

Prashant: We received this bug on Desk, but I'm unable to reproduce it with given steps.
Comment 1 Jeffrey Stedfast 2013-01-02 11:10:21 UTC
He probably did "Add New File" and selected the "iPhone ViewController" template instead of selecting the generic C# class template.

The ViewController template creates the xibs and .designer.cs files while the generic C# class template does not.

That's the only way this could happen. MonoDevelop won't randomly create xib files (it can't, they *must* be added via a template)