Bug 12188 - Missing tabBarItem in the iOS designer crashes XCode
Summary: Missing tabBarItem in the iOS designer crashes XCode
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS Designer ()
Version: 4.1
Hardware: PC Mac OS
: --- normal
Target Milestone: 4.0.9 (from master)
Assignee: Alan McGovern
URL:
Depends on:
Blocks:
 
Reported: 2013-05-10 03:10 UTC by Chris van Wyk
Modified: 2013-06-24 16:18 UTC (History)
3 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 FIXED

Description Chris van Wyk 2013-05-10 03:10:01 UTC
When linking new ViewControllers to a tabbar controller the tabBarItem entry is not automatically generated in the storyboard xml.

Opening the the Storyboard in XCode, without the tabbar item added manually, crashes XCode. Currently Xcode seems to be the only access point to edit the properties of the tabBarItem, for example changing the image.

Example scene:

<scene sceneID="4">
        <objects>
            <viewController id="5" sceneMemberID="viewController">
                <view key="view" contentMode="scaleToFill" id="6">
                    <rect key="frame" x="0.0" y="20" width="320" height="411"/>
                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                    <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
                </view>
                <tabBarItem key="tabBarItem" title="Item 4" id="2jI-Ux-lHi"/>
            </viewController>
            <placeholder placeholderIdentifier="IBFirstResponder" id="7" userLabel="First Responder" sceneMemberID="firstResponder"/>
        </objects>
        <point key="canvasLocation" x="252" y="776"/>
</scene>

The line [<tabBarItem key="tabBarItem" title="Item 4" id="2jI-Ux-lHi"/>] from the above example is missing when created with the Xamarin Studio iOS designer.
Comment 1 Alan McGovern 2013-05-10 15:31:24 UTC
The crash and inability to edit this TabBarItem have both been fixed. Thanks for reporting the issue!
Comment 2 Alan McGovern 2013-05-10 15:31:54 UTC
Well, i didn't *fix* Xcodes crash, i just made it so that we wrote the elements it expects so it no longer blows up ;)
Comment 3 PJ 2013-06-24 16:18:39 UTC
This bug was marked as fixed for Xamarin Studio 4.0.9, which is currently in the beta channel. Try it out!