Skip to content

Commit

Permalink
Fix rotation and keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzhow committed Nov 1, 2015
1 parent 8f57db2 commit 493e247
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Yep/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<outlet property="delegate" destination="la3-6z-2aH" id="zOV-zM-2KH"/>
</connections>
</collectionView>
<view contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Gu7-gn-2ia">
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Gu7-gn-2ia">
<rect key="frame" x="0.0" y="270" width="600" height="100"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Swipe Up to Cancel" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Zew-F7-znc">
Expand Down Expand Up @@ -112,7 +112,7 @@
<constraint firstItem="Zew-F7-znc" firstAttribute="top" secondItem="4p2-ZI-7q3" secondAttribute="bottom" constant="10" id="b9o-gU-cOq"/>
</constraints>
</view>
<toolbar opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Q0w-sM-iIR" customClass="MessageToolbar" customModule="Yep" customModuleProvider="target">
<toolbar opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Q0w-sM-iIR" customClass="MessageToolbar" customModule="Yep" customModuleProvider="target">
<rect key="frame" x="0.0" y="390" width="600" height="50"/>
<animations/>
<items/>
Expand Down Expand Up @@ -1943,8 +1943,8 @@
<image name="yep_icon_solo" width="120" height="120"/>
</resources>
<inferredMetricsTieBreakers>
<segue reference="l4P-ds-ihU"/>
<segue reference="Sdt-ox-uOm"/>
<segue reference="j1h-7M-vYS"/>
<segue reference="hTj-2y-9h4"/>
</inferredMetricsTieBreakers>
</document>
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ extension AddFriendsViewController: UITableViewDataSource, UITableViewDelegate {

cell.searchTextField.returnKeyType = .Search
cell.searchTextField.delegate = self
cell.searchTextField.becomeFirstResponder()

return cell

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class SearchedUsersViewController: BaseViewController {
searchedUsersTableView.registerNib(UINib(nibName: cellIdentifier, bundle: nil), forCellReuseIdentifier: cellIdentifier)
searchedUsersTableView.rowHeight = 80


activityIndicator.startAnimating()

searchUsersByQ(searchText, failureHandler: { [weak self] reason, errorMessage in
Expand Down
5 changes: 4 additions & 1 deletion Yep/Views/Cells/ChatRightBase/ChatRightBaseCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ class ChatRightBaseCell: ChatBaseCell {
case MessageSendState.NotSend:
dotImageView.image = UIImage(named: "icon_dot_sending")
dotImageView.hidden = false

delay(0.1, work: { [weak self] in
self?.showSendingAnimation()
})

showSendingAnimation()

case MessageSendState.Successed:
dotImageView.image = UIImage(named: "icon_dot_unread")
Expand Down

0 comments on commit 493e247

Please sign in to comment.