Correction for Bug 18493 [UILabel text was not displayed on iOS 6.1.1]

- I recreated the Label and added new autolayout constraints.
This commit is contained in:
Vincent Dondain 2014-06-10 11:34:25 -04:00
Родитель dd87570e42
Коммит dcba62c734
2 изменённых файлов: 18 добавлений и 14 удалений

Просмотреть файл

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4457.4" systemVersion="13A476p" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="vXZ-lx-hvc">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3682.4"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/>
</dependencies>
<scenes>
<!--View Controller-->
@ -16,26 +16,29 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
</imageView>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="CdY-P1-iWP">
<rect key="frame" x="20" y="529" width="280" height="19"/>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Label" lineBreakMode="tailTruncation" minimumFontSize="10" id="3" translatesAutoresizingMaskIntoConstraints="NO" textAlignment="center" misplaced="YES">
<rect key="frame" x="30" y="527" width="259" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="calibratedRGB"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" colorSpace="calibratedRGB" red="1" green="1" blue="1" alpha="1"/>
<nil key="highlightedColor"/>
<constraints>
<constraint firstAttribute="width" constant="259" id="6"/>
</constraints>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="NdV-Zd-9qD" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" id="6q8-Jm-wJo"/>
<constraint firstItem="CdY-P1-iWP" firstAttribute="leading" secondItem="NdV-Zd-9qD" secondAttribute="leading" constant="20" id="9Xo-Ra-bnD"/>
<constraint firstItem="NdV-Zd-9qD" firstAttribute="bottom" secondItem="kh9-bI-dsS" secondAttribute="bottom" id="Gws-xV-sYo"/>
<constraint firstItem="CdY-P1-iWP" firstAttribute="trailing" secondItem="NdV-Zd-9qD" secondAttribute="trailing" constant="-20" id="Hbc-ld-tKM"/>
<constraint firstItem="NdV-Zd-9qD" firstAttribute="trailing" secondItem="kh9-bI-dsS" secondAttribute="trailing" id="Kqs-9y-tgA"/>
<constraint firstItem="NdV-Zd-9qD" firstAttribute="trailing" secondItem="kh9-bI-dsS" secondAttribute="trailing" id="V6e-EA-irs"/>
<constraint firstItem="CdY-P1-iWP" firstAttribute="top" secondItem="NdV-Zd-9qD" secondAttribute="bottom" constant="-39" id="abG-84-HaQ"/>
<constraint firstItem="NdV-Zd-9qD" firstAttribute="top" secondItem="kh9-bI-dsS" secondAttribute="top" id="gA5-db-up7"/>
<constraint firstItem="NdV-Zd-9qD" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" id="qJK-od-z3y"/>
<constraint firstItem="NdV-Zd-9qD" firstAttribute="top" secondItem="kh9-bI-dsS" secondAttribute="top" id="vLb-60-yby"/>
<constraint firstItem="3" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leading" constant="30" id="4"/>
<constraint firstItem="kh9-bI-dsS" firstAttribute="bottom" secondItem="3" secondAttribute="bottom" constant="20" id="5"/>
</constraints>
<connections>
<outletCollection property="gestureRecognizers" destination="wV8-Km-vnh" appends="YES" id="OX1-Lp-U0e"/>
@ -43,8 +46,8 @@
</view>
<extendedEdge key="edgesForExtendedLayout"/>
<connections>
<outlet property="effectLabel" destination="CdY-P1-iWP" id="5T9-Cf-EZ2"/>
<outlet property="imageView" destination="NdV-Zd-9qD" id="v15-Df-aEM"/>
<outlet property="effectLabel" destination="3" id="name-outlet-3"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
@ -81,4 +84,4 @@
<resources>
<image name="DisplayImage" width="640" height="1136"/>
</resources>
</document>
</document>

9
UIImageEffects/ViewController.designer.cs сгенерированный
Просмотреть файл

@ -4,6 +4,7 @@
// actions declared in your storyboard file.
// Manual changes to this file will not be maintained.
//
using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using System.CodeDom.Compiler;
@ -14,12 +15,12 @@ namespace UIImageEffects
partial class ViewController
{
[Outlet]
[GeneratedCodeAttribute ("iOS Designer", "1.0")]
MonoTouch.UIKit.UILabel effectLabel { get; set; }
[GeneratedCode ("iOS Designer", "1.0")]
UILabel effectLabel { get; set; }
[Outlet]
[GeneratedCodeAttribute ("iOS Designer", "1.0")]
MonoTouch.UIKit.UIImageView imageView { get; set; }
[GeneratedCode ("iOS Designer", "1.0")]
UIImageView imageView { get; set; }
void ReleaseDesignerOutlets ()
{