Skip to content
This repository was archived by the owner on Aug 14, 2019. It is now read-only.

Commit f78c455

Browse files
committed
add resend button
1 parent 9b9bcc3 commit f78c455

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

JSQMessagesViewController/Views/JSQMessagesCollectionViewCellOutgoing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
* of `JSQMessagesCollectionViewCell` that represents an outgoing message data item.
2424
*/
2525
@interface JSQMessagesCollectionViewCellOutgoing : JSQMessagesCollectionViewCell
26-
26+
@property (weak, nonatomic) IBOutlet UIButton *buttonResend;
2727
@end

JSQMessagesViewController/Views/JSQMessagesCollectionViewCellOutgoing.xib

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6250" systemVersion="14A389" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6250" systemVersion="14B17" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
33
<dependencies>
44
<deployment identifier="iOS"/>
55
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
@@ -87,6 +87,19 @@
8787
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
8888
<nil key="highlightedColor"/>
8989
</label>
90+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3cn-NA-ebm">
91+
<rect key="frame" x="4" y="72" width="32" height="30"/>
92+
<color key="backgroundColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
93+
<constraints>
94+
<constraint firstAttribute="height" constant="30" id="vJj-GH-bBI"/>
95+
<constraint firstAttribute="width" constant="32" id="zwC-Eq-Rwt"/>
96+
</constraints>
97+
<fontDescription key="fontDescription" type="system" pointSize="12"/>
98+
<state key="normal" title="resend">
99+
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
100+
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
101+
</state>
102+
</button>
90103
</subviews>
91104
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
92105
</view>
@@ -97,13 +110,15 @@
97110
<constraint firstItem="jxM-YD-sVG" firstAttribute="top" secondItem="23f-xH-rkY" secondAttribute="top" id="HYT-Tw-whz"/>
98111
<constraint firstAttribute="trailing" secondItem="X89-B1-aAd" secondAttribute="trailing" id="KLt-Ix-wDa"/>
99112
<constraint firstItem="7Uc-dI-YDD" firstAttribute="top" secondItem="2zh-vR-QJW" secondAttribute="bottom" id="Ngq-ew-t2K"/>
113+
<constraint firstItem="3cn-NA-ebm" firstAttribute="trailing" secondItem="2zh-vR-QJW" secondAttribute="leading" constant="-4" id="Tze-Yc-6yt"/>
100114
<constraint firstItem="7Uc-dI-YDD" firstAttribute="leading" secondItem="23f-xH-rkY" secondAttribute="leading" id="fiS-g3-X16"/>
101115
<constraint firstAttribute="bottom" secondItem="7Uc-dI-YDD" secondAttribute="bottom" id="gXo-9b-b1W"/>
102116
<constraint firstAttribute="trailing" secondItem="p52-YN-yLu" secondAttribute="trailing" id="gen-N0-uZj"/>
103117
<constraint firstItem="p52-YN-yLu" firstAttribute="top" secondItem="jxM-YD-sVG" secondAttribute="bottom" id="jBD-JV-AWk"/>
104118
<constraint firstItem="jxM-YD-sVG" firstAttribute="leading" secondItem="23f-xH-rkY" secondAttribute="leading" id="qeB-G5-1Wq"/>
105119
<constraint firstItem="p52-YN-yLu" firstAttribute="leading" secondItem="23f-xH-rkY" secondAttribute="leading" id="tTj-Mp-0va"/>
106120
<constraint firstItem="X89-B1-aAd" firstAttribute="leading" secondItem="2zh-vR-QJW" secondAttribute="trailing" constant="2" id="vMz-Yi-B0w"/>
121+
<constraint firstItem="3cn-NA-ebm" firstAttribute="centerY" secondItem="2zh-vR-QJW" secondAttribute="centerY" id="yfx-hl-kob"/>
107122
<constraint firstItem="p52-YN-yLu" firstAttribute="bottom" secondItem="X89-B1-aAd" secondAttribute="top" id="zCS-q2-S9X"/>
108123
</constraints>
109124
<size key="customSize" width="317" height="245"/>
@@ -112,6 +127,7 @@
112127
<outlet property="avatarContainerViewHeightConstraint" destination="tgw-aN-JJu" id="pgV-tY-5Cm"/>
113128
<outlet property="avatarContainerViewWidthConstraint" destination="Pkm-tW-k4z" id="Cpe-d3-yiq"/>
114129
<outlet property="avatarImageView" destination="y9b-D9-Q7W" id="cZo-SR-S9h"/>
130+
<outlet property="buttonResend" destination="3cn-NA-ebm" id="K2y-ZC-1eM"/>
115131
<outlet property="cellBottomLabel" destination="7Uc-dI-YDD" id="gVD-C2-UcZ"/>
116132
<outlet property="cellBottomLabelHeightConstraint" destination="cPs-M4-tjX" id="b5k-6e-iA8"/>
117133
<outlet property="cellTopLabel" destination="jxM-YD-sVG" id="acH-pr-spx"/>

0 commit comments

Comments
 (0)