1

通过删除代码和跟踪和错误,我发现我的 .xib 文件中的以下行使 Xcode 6.3.1 中的 ibtool 崩溃。

<fontDescription key="fontDescription" style="UICTFontTextStyleHeadline"/>

在以下块中:

        <navigationController id="9" customClass="CustomNavigationController">
            <extendedEdge key="edgesForExtendedLayout"/>
            <simulatedStatusBarMetrics key="simulatedStatusBarMetrics" statusBarStyle="blackOpaque"/>
            <simulatedNavigationBarMetrics key="simulatedTopBarMetrics" translucent="NO" prompted="NO"/>
            <navigationBar key="navigationBar" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" barStyle="black" translucent="NO" id="11">
                <autoresizingMask key="autoresizingMask"/>
                <color key="backgroundColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
                <color key="tintColor" red="0.52042670701978977" green="0.78835227272727271" blue="0.33819077917403134" alpha="1" colorSpace="calibratedRGB"/>
                <textAttributes key="titleTextAttributes">
                    <fontDescription key="fontDescription" style="UICTFontTextStyleHeadline"/>
                    <color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                </textAttributes>
            </navigationBar>
            <viewControllers>
                <viewController nibName="RootViewController" id="13" customClass="RootViewController">
                    <extendedEdge key="edgesForExtendedLayout"/>
                    <navigationItem key="navigationItem" id="14">
                        <nil key="title"/>
                    </navigationItem>
                </viewController>
            </viewControllers>
        </navigationController>

有没有另一种方法可以在不崩溃 ibtool 的情况下获得相同的功能。这个项目相当老了,我正在做的事情已经过时了吗?

4

0 回答 0