mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-10 13:26:13 +10:00
Update discover cell
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
0AD7EA771AC3EEB000617758 /* PushConfig.plist in Resources */ = {isa = PBXBuildFile; fileRef = 0AD7EA761AC3EEB000617758 /* PushConfig.plist */; };
|
||||
0AEB1CC21B0E69B500178C9C /* Fabric.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AEB1CC11B0E69B500178C9C /* Fabric.framework */; };
|
||||
0AEB1CC41B0E6A4B00178C9C /* Crashlytics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AEB1CC31B0E6A4B00178C9C /* Crashlytics.framework */; };
|
||||
0AEB1CC61B0E742400178C9C /* Double+Yep.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0AEB1CC51B0E742400178C9C /* Double+Yep.swift */; };
|
||||
15606C18E1487982869C0A42 /* Pods.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FD88F6095DB46DFAD41AB5DB /* Pods.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
|
||||
50165C451AC2860900C7AEBE /* ConversationLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50165C441AC2860900C7AEBE /* ConversationLayout.swift */; };
|
||||
5023DE261AB6856300B3EE96 /* ConversationsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5023DE251AB6856300B3EE96 /* ConversationsViewController.swift */; };
|
||||
@@ -243,6 +244,7 @@
|
||||
0AD7EA761AC3EEB000617758 /* PushConfig.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = PushConfig.plist; path = JPush/PushConfig.plist; sourceTree = "<group>"; };
|
||||
0AEB1CC11B0E69B500178C9C /* Fabric.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Fabric.framework; sourceTree = "<group>"; };
|
||||
0AEB1CC31B0E6A4B00178C9C /* Crashlytics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Crashlytics.framework; sourceTree = "<group>"; };
|
||||
0AEB1CC51B0E742400178C9C /* Double+Yep.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "Double+Yep.swift"; path = "Extensions/Double+Yep.swift"; sourceTree = "<group>"; };
|
||||
2268251A75FF6766DC31CCFB /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
50165C441AC2860900C7AEBE /* ConversationLayout.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ConversationLayout.swift; path = ViewControllers/Conversation/ConversationLayout.swift; sourceTree = "<group>"; };
|
||||
5023DE251AB6856300B3EE96 /* ConversationsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ConversationsViewController.swift; path = ViewControllers/Conversations/ConversationsViewController.swift; sourceTree = "<group>"; };
|
||||
@@ -654,6 +656,7 @@
|
||||
50A9D44A1ACD37A8000B2599 /* NSFileManager+Yep.swift */,
|
||||
50553F921ADBA50600F80B59 /* NSDate+Yep.swift */,
|
||||
508F8FE11B04B1F900461B0B /* UIDevice+Yep.swift */,
|
||||
0AEB1CC51B0E742400178C9C /* Double+Yep.swift */,
|
||||
);
|
||||
name = Extensions;
|
||||
sourceTree = "<group>";
|
||||
@@ -1553,6 +1556,7 @@
|
||||
503315971AC1017E0008A209 /* ChatLeftTextCell.swift in Sources */,
|
||||
0A8F54B11AB67D11004AD60E /* AppDelegate.swift in Sources */,
|
||||
508F8FC81B0161EF00461B0B /* ProfileSeparationLineCell.swift in Sources */,
|
||||
0AEB1CC61B0E742400178C9C /* Double+Yep.swift in Sources */,
|
||||
508D174C1ACCF49B0092D666 /* ChatRightAudioCell.swift in Sources */,
|
||||
502AE53D1AB87C0D005BD199 /* YepUserDefaults.swift in Sources */,
|
||||
50EB8CC41AE89F12001AC1EE /* ChatRightVideoCell.swift in Sources */,
|
||||
|
||||
@@ -438,7 +438,7 @@
|
||||
</constraints>
|
||||
</view>
|
||||
<navigationItem key="navigationItem" title="Discover" id="di2-g9-owW">
|
||||
<barButtonItem key="rightBarButtonItem" title="NearBy" id="mve-O6-ube"/>
|
||||
<barButtonItem key="rightBarButtonItem" title="Nearby" id="mve-O6-ube"/>
|
||||
</navigationItem>
|
||||
<connections>
|
||||
<outlet property="discoverTableView" destination="SPh-AI-uaZ" id="mB3-87-mQq"/>
|
||||
@@ -1222,7 +1222,7 @@
|
||||
<image name="top_shadow" width="375" height="80"/>
|
||||
</resources>
|
||||
<inferredMetricsTieBreakers>
|
||||
<segue reference="Pxr-1p-x84"/>
|
||||
<segue reference="o3b-2D-AMq"/>
|
||||
<segue reference="l4P-ds-ihU"/>
|
||||
</inferredMetricsTieBreakers>
|
||||
</document>
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// Double+Yep.swift
|
||||
// Yep
|
||||
//
|
||||
// Created by kevinzhow on 15/5/22.
|
||||
// Copyright (c) 2015年 Catch Inc. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
extension Double {
|
||||
func format(f: String) -> String {
|
||||
return NSString(format: "%\(f)f", self) as String
|
||||
}
|
||||
}
|
||||
@@ -80,7 +80,7 @@ extension ContactsViewController: UITableViewDataSource, UITableViewDelegate {
|
||||
}
|
||||
|
||||
cell.nameLabel.text = friend.nickname
|
||||
cell.joinedDateLabel.text = friend.createdAt.timeAgo
|
||||
cell.joinedDateLabel.text = friend.introduction
|
||||
cell.lastTimeSeenLabel.text = friend.createdAt.timeAgo
|
||||
|
||||
return cell
|
||||
|
||||
@@ -87,8 +87,9 @@ extension DiscoverViewController: UITableViewDataSource, UITableViewDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
cell.joinedDateLabel.text = discoveredUser.createdAt.timeAgo
|
||||
cell.lastTimeSeenLabel.text = discoveredUser.lastSignInAt.timeAgo
|
||||
cell.joinedDateLabel.text = discoveredUser.introduction
|
||||
let distance = discoveredUser.distance.format(".1")
|
||||
cell.lastTimeSeenLabel.text = "\(distance)km | \(discoveredUser.lastSignInAt.timeAgo)"
|
||||
|
||||
cell.nameLabel.text = discoveredUser.nickname
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7528.3" systemVersion="14C1514" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7518.3"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/>
|
||||
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
|
||||
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
|
||||
</dependencies>
|
||||
@@ -23,13 +23,13 @@
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Last seen just now" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GZ1-Eh-QgO">
|
||||
<rect key="frame" x="230" y="15" width="82" height="12"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="light" pointSize="10"/>
|
||||
<color key="textColor" white="0.75092875869999998" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<rect key="frame" x="214" y="12.5" width="98" height="14.5"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="light" pointSize="12"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.20000000000000001" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Joined 2 days ago" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FiT-eM-gyl">
|
||||
<rect key="frame" x="80" y="35" width="232" height="15"/>
|
||||
<rect key="frame" x="80" y="35" width="232" height="14.5"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="12"/>
|
||||
<color key="textColor" white="0.5039117192" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<nil key="highlightedColor"/>
|
||||
|
||||
Reference in New Issue
Block a user