Initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// MineGoldCustomViewCell.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/3/15.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "MineGoldModel.h"
|
||||
//typedef NS_ENUM(NSInteger, MineGoldCellType){
|
||||
// MineGoldCellTypeIn = 0,
|
||||
// MineGoldCellTypeOut
|
||||
//};
|
||||
|
||||
@interface MineGoldCustomViewCell : UITableViewCell
|
||||
//@property (nonatomic) MineGoldCellType cellType;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *remaklabel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *creatTime;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *goldlabel;
|
||||
|
||||
-(void)loadLeftTabCellData:(MineGoldModel*)model;
|
||||
|
||||
-(void)loadRightTabCellData:(MineGoldModel*)model;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// MineGoldCustomViewCell.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/3/15.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MineGoldCustomViewCell.h"
|
||||
|
||||
@implementation MineGoldCustomViewCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
}
|
||||
|
||||
-(void)loadLeftTabCellData:(MineGoldModel*)model
|
||||
{
|
||||
self.remaklabel.text = model.titleName;
|
||||
self.creatTime.text = model.creatTime;
|
||||
self.goldlabel.textColor = RGB(255, 115, 92);
|
||||
self.goldlabel.text = [NSString stringWithFormat:@"+%@",model.goldValue];
|
||||
|
||||
}
|
||||
|
||||
-(void)loadRightTabCellData:(MineGoldModel*)model
|
||||
{
|
||||
self.remaklabel.text = model.titleName;
|
||||
self.creatTime.text = model.creatTime;
|
||||
self.goldlabel.textColor = RGB(0, 185, 239);
|
||||
self.goldlabel.text = [NSString stringWithFormat:@"-%@",model.goldValue];
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
||||
[super setSelected:selected animated:animated];
|
||||
|
||||
// Configure the view for the selected state
|
||||
}
|
||||
|
||||
@end
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait">
|
||||
<adaptation id="fullscreen"/>
|
||||
</device>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
|
||||
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MineGoldCustomViewCell" rowHeight="49" id="KGk-i7-Jjw" customClass="MineGoldCustomViewCell">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FfJ-f1-kHg">
|
||||
<rect key="frame" x="15" y="8" width="31" height="16"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="16" id="XCW-ZP-ZVK"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="12"/>
|
||||
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HbL-zE-nF2">
|
||||
<rect key="frame" x="15" y="28" width="160" height="15"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="160" id="Wfn-Zm-tYp"/>
|
||||
<constraint firstAttribute="height" constant="15" id="a9z-eN-Msk"/>
|
||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="160" id="lFJ-qQ-luS"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="12"/>
|
||||
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2fz-WC-IbM">
|
||||
<rect key="frame" x="0.0" y="48" width="375" height="1"/>
|
||||
<color key="backgroundColor" red="0.8666666666666667" green="0.8666666666666667" blue="0.8666666666666667" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="1" id="GrW-Gs-fbL"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hAk-AF-0fz">
|
||||
<rect key="frame" x="283" y="17" width="77" height="15"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="77" id="1e8-ZW-Eg9"/>
|
||||
<constraint firstAttribute="height" constant="15" id="ES3-9q-CUZ"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="15"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="topMargin" secondItem="FfJ-f1-kHg" secondAttribute="top" id="1EB-Fc-DoN"/>
|
||||
<constraint firstAttribute="bottom" secondItem="2fz-WC-IbM" secondAttribute="bottom" id="C2f-3J-wVQ"/>
|
||||
<constraint firstItem="2fz-WC-IbM" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="L1h-sz-kHI"/>
|
||||
<constraint firstAttribute="trailingMargin" secondItem="hAk-AF-0fz" secondAttribute="trailing" constant="7" id="S9X-ci-eqK"/>
|
||||
<constraint firstAttribute="trailing" secondItem="2fz-WC-IbM" secondAttribute="trailing" id="Uhh-PO-FXe"/>
|
||||
<constraint firstAttribute="bottomMargin" secondItem="HbL-zE-nF2" secondAttribute="bottom" constant="-2" id="aEF-Ny-OgK"/>
|
||||
<constraint firstItem="FfJ-f1-kHg" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="csc-L4-0dQ"/>
|
||||
<constraint firstItem="hAk-AF-0fz" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="eVh-bi-hAw"/>
|
||||
<constraint firstItem="HbL-zE-nF2" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="fHh-7L-few"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<connections>
|
||||
<outlet property="creatTime" destination="HbL-zE-nF2" id="dJ0-uy-3m0"/>
|
||||
<outlet property="goldlabel" destination="hAk-AF-0fz" id="FIL-Dd-ERB"/>
|
||||
<outlet property="remaklabel" destination="FfJ-f1-kHg" id="fMS-b1-HXB"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="25.5" y="51.5"/>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
</document>
|
||||
Reference in New Issue
Block a user