Initial commit

This commit is contained in:
ifish
2017-08-15 16:59:01 +08:00
commit bdc83e07ef
5766 changed files with 423223 additions and 0 deletions
@@ -0,0 +1,13 @@
//
// DengJiShuoMingViewBootomCell.h
// Ifish
//
// Created by imac on 17/3/1.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface DengJiShuoMingViewBootomCell : UITableViewCell
@end
@@ -0,0 +1,24 @@
//
// DengJiShuoMingViewBootomCell.m
// Ifish
//
// Created by imac on 17/3/1.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "DengJiShuoMingViewBootomCell.h"
@implementation DengJiShuoMingViewBootomCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11542" 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="11524"/>
<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="DengJiShuoMingViewBootomCell" id="KGk-i7-Jjw" customClass="DengJiShuoMingViewBootomCell">
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
<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="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kwD-G8-W9T">
<rect key="frame" x="15" y="0.0" width="345" height="44"/>
<color key="backgroundColor" red="0.94509803920000002" green="0.95686274510000002" blue="0.95686274510000002" alpha="1" colorSpace="calibratedRGB"/>
</view>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="kwD-G8-W9T" secondAttribute="trailing" constant="15" id="3ki-cC-cMx"/>
<constraint firstItem="kwD-G8-W9T" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="8i3-Xo-A0K"/>
<constraint firstItem="kwD-G8-W9T" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="Akr-2N-DhQ"/>
<constraint firstAttribute="bottom" secondItem="kwD-G8-W9T" secondAttribute="bottom" id="B8h-gL-V0u"/>
</constraints>
</tableViewCellContentView>
<point key="canvasLocation" x="24.5" y="52"/>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,18 @@
//
// DengJiShuoMingViewCell.h
// Ifish
//
// Created by imac on 17/3/1.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MineDengJi.h"
@interface DengJiShuoMingViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *levelValue;
@property (weak, nonatomic) IBOutlet UILabel *levelName;
@property (weak, nonatomic) IBOutlet UILabel *levelMark;
-(void)loadCelldata:(MineDengJi *)model;
@end
@@ -0,0 +1,33 @@
//
// DengJiShuoMingViewCell.m
// Ifish
//
// Created by imac on 17/3/1.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "DengJiShuoMingViewCell.h"
@implementation DengJiShuoMingViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
-(void)loadCelldata:(MineDengJi *)model
{
self.levelValue.text = [NSString stringWithFormat:@"LV%@:",model.levelCode];
self.levelValue.font =[UIFont fontWithName:@"Arial-BoldItalicMT" size:13];
self.levelName.text = model.levelName;
self.levelMark.text = model.remark;
[self.levelMark sizeToFit];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11542" 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="11524"/>
<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="DengJiShuoMingViewCell" id="KGk-i7-Jjw" customClass="DengJiShuoMingViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<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="320" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="dIp-SP-GRU">
<rect key="frame" x="15" y="0.0" width="290" height="43"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="LV1:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="TnZ-gm-TG1">
<rect key="frame" x="14" y="14" width="39" height="16"/>
<constraints>
<constraint firstAttribute="width" constant="39" id="Fjl-od-E5M"/>
<constraint firstAttribute="height" constant="16" id="eYT-hG-fPK"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" red="0.9882352941176471" green="0.69411764705882351" blue="0.41176470588235292" 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="Yh6-3A-yIM">
<rect key="frame" x="87" y="14" width="203" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="rZI-9V-LJp"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="小虾米" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zAG-iG-Egw">
<rect key="frame" x="47" y="14" width="37" height="16"/>
<constraints>
<constraint firstAttribute="width" constant="37" id="KtQ-EB-dJQ"/>
<constraint firstAttribute="height" constant="16" id="lxa-Ks-Bq3"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.94509803921568625" green="0.95686274509803915" blue="0.95686274509803915" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="Yh6-3A-yIM" firstAttribute="centerY" secondItem="dIp-SP-GRU" secondAttribute="centerY" id="4NV-gJ-h2d"/>
<constraint firstItem="TnZ-gm-TG1" firstAttribute="leading" secondItem="dIp-SP-GRU" secondAttribute="leading" constant="14" id="4Zi-Nx-MMb"/>
<constraint firstItem="TnZ-gm-TG1" firstAttribute="centerY" secondItem="dIp-SP-GRU" secondAttribute="centerY" id="6un-ID-0Fl"/>
<constraint firstItem="zAG-iG-Egw" firstAttribute="leading" secondItem="TnZ-gm-TG1" secondAttribute="trailing" constant="-6" id="HSN-dK-mxw"/>
<constraint firstItem="zAG-iG-Egw" firstAttribute="centerY" secondItem="dIp-SP-GRU" secondAttribute="centerY" id="Oig-JE-Tn5"/>
<constraint firstItem="Yh6-3A-yIM" firstAttribute="leading" secondItem="zAG-iG-Egw" secondAttribute="trailing" constant="3" id="f37-Ht-xBb"/>
<constraint firstAttribute="trailing" secondItem="Yh6-3A-yIM" secondAttribute="trailing" id="pXe-Ta-2p3"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstAttribute="bottom" secondItem="dIp-SP-GRU" secondAttribute="bottom" id="DSb-Id-5e3"/>
<constraint firstItem="dIp-SP-GRU" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="T2J-K0-sVT"/>
<constraint firstItem="dIp-SP-GRU" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="duz-JD-Y6G"/>
<constraint firstAttribute="trailingMargin" secondItem="dIp-SP-GRU" secondAttribute="trailing" constant="7" id="sYt-Nn-UJj"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="levelMark" destination="Yh6-3A-yIM" id="toE-BU-PWq"/>
<outlet property="levelName" destination="zAG-iG-Egw" id="xog-MI-evZ"/>
<outlet property="levelValue" destination="TnZ-gm-TG1" id="Ahe-p7-UCi"/>
</connections>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,13 @@
//
// DengJiShuoMingViewTopCell.h
// Ifish
//
// Created by imac on 17/3/1.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface DengJiShuoMingViewTopCell : UITableViewCell
@end
@@ -0,0 +1,24 @@
//
// DengJiShuoMingViewTopCell.m
// Ifish
//
// Created by imac on 17/3/1.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "DengJiShuoMingViewTopCell.h"
@implementation DengJiShuoMingViewTopCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11542" 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="11524"/>
<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="DengJiShuoMingViewTopCell" id="KGk-i7-Jjw" customClass="DengJiShuoMingViewTopCell">
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
<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="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HgZ-Vd-a7j">
<rect key="frame" x="15" y="5" width="344" height="39"/>
<color key="backgroundColor" red="0.94509803920000002" green="0.95686274510000002" blue="0.95686274510000002" alpha="1" colorSpace="calibratedRGB"/>
</view>
</subviews>
<constraints>
<constraint firstItem="HgZ-Vd-a7j" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="8lN-s3-oKk"/>
<constraint firstAttribute="trailingMargin" secondItem="HgZ-Vd-a7j" secondAttribute="trailing" constant="8" id="P2p-Gs-TJz"/>
<constraint firstAttribute="bottom" secondItem="HgZ-Vd-a7j" secondAttribute="bottom" id="fFP-dg-45M"/>
<constraint firstItem="HgZ-Vd-a7j" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="-3" id="sfm-sL-kzB"/>
</constraints>
</tableViewCellContentView>
<point key="canvasLocation" x="26.5" y="52"/>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,23 @@
//
// DengJiView0Cell.h
// Ifish
//
// Created by imac on 17/2/28.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "IfishDengjiProgress.h"
@interface DengJiView0Cell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *dengJiImg;
@property (weak, nonatomic) IBOutlet UILabel *dengJIlabel;
@property (weak, nonatomic) IBOutlet UILabel *startDengJi;
@property (weak, nonatomic) IBOutlet UILabel *endDengJi;
@property (weak, nonatomic) IBOutlet IfishDengjiProgress *dengJiProgress;
@property (weak, nonatomic) IBOutlet UILabel *surplusExp;
-(void)loadCellDataWith:(NSMutableArray *)dengJiArr;
@end
@@ -0,0 +1,137 @@
//
// DengJiView0Cell.m
// Ifish
//
// Created by imac on 17/2/28.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "DengJiView0Cell.h"
#import "MineDengJi.h"
@implementation DengJiView0Cell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
-(void)loadCellDataWith:(NSMutableArray *)dengJiArr{
IfishUserAsset *userAsset = [dataContorl getAllIfishUserAsset];
UIImage *levelImg =[UIImage imageNamed:@"fishrank_smallShrimp"];
if ([userAsset.gradeNum isKindOfClass:[NSNull class]]||!userAsset.gradeNum) {
userAsset.gradeNum = @"1";
}
NSString *safeString = [NSString stringWithFormat:@"%@",userAsset.gradeNum];
if ([safeString isEqualToString:@"1"]) {
levelImg = [UIImage imageNamed:@"fishrank_smallShrimp"];
}else if ([safeString isEqualToString:@"2"]){
levelImg = [UIImage imageNamed:@"fishrank_flyFish"];
}else if ([safeString isEqualToString:@"3"]){
levelImg = [UIImage imageNamed:@"fishrank_crab"];
}else if ([safeString isEqualToString:@"4"]){
levelImg = [UIImage imageNamed:@"fishrank_yaksha"];
}else if ([safeString isEqualToString:@"5"]){
levelImg = [UIImage imageNamed:@"fishrank_tortoise"];
}else if ([safeString isEqualToString:@"6"]){
levelImg = [UIImage imageNamed:@"fishrank_dragon"];
}else if ([safeString isEqualToString:@"7"]){
levelImg = [UIImage imageNamed:@"fishrank_dragonking"];
}
self.dengJiImg.image =levelImg;
if ([userAsset.gradeName isKindOfClass:[NSNull class]]||!userAsset.gradeNum) {
userAsset.gradeName = @"小虾米";
}
NSString *str =[NSString stringWithFormat:@"LV%@ %@",safeString,userAsset.gradeName];
NSMutableAttributedString * attributedString = [[NSMutableAttributedString alloc] initWithString:str];
[attributedString addAttribute:NSForegroundColorAttributeName value:[UIColor colorWithRed:253.0/255.0 green:145.0/255.0 blue:80.0/255.0 alpha:1] range:NSMakeRange(0,[str length])];
[attributedString addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"Arial-BoldItalicMT" size:15] range:NSMakeRange(0, 3)];
[attributedString addAttribute:NSFontAttributeName value:[UIFont boldSystemFontOfSize:14] range:NSMakeRange(4,[str length]-4)];
self.dengJIlabel.attributedText = attributedString;
self.startDengJi.text = [NSString stringWithFormat:@"LV%@",safeString];
int endCode = [userAsset.gradeNum intValue];
if ([safeString intValue]>=7) {
self.endDengJi.text =[NSString stringWithFormat:@"满级"];
}else{
self.endDengJi.text =[NSString stringWithFormat:@"LV%d",endCode+1];
}
int nowvalue = [userAsset.gradeValue intValue];
self.dengJiProgress.progressColor = RGB(253, 109, 73);
self.dengJiProgress.trackColor = RGB(227, 224, 223);
self.dengJiProgress.pointColor = RGB(253, 109, 73);
NSString * surplusStr;
NSMutableAttributedString * surplusString;
if ([safeString intValue]>=7) {
surplusStr =[NSString stringWithFormat:@"已满级"];
surplusString = [[NSMutableAttributedString alloc] initWithString:surplusStr];
self.dengJiProgress.progress = 1.0;
}else{
self.dengJiProgress.progress = [self formatDataWith:dengJiArr andLevelValue:nowvalue andlevelCode:safeString];
int surplus = [self lastUplelvelValueWith:dengJiArr andLevelValue:nowvalue andlevelCode:safeString];
surplusStr =[NSString stringWithFormat:@"离下一级还差%d经验值",surplus];
surplusString = [[NSMutableAttributedString alloc] initWithString:surplusStr];
NSString *surpNumber = [NSString stringWithFormat:@"%d",surplus];
[surplusString addAttribute:NSForegroundColorAttributeName value:[UIColor colorWithRed:255.0/255.0 green:193.0/255.0 blue:73.0/255.0 alpha:1] range:NSMakeRange(6,[surpNumber length])];
}
self.surplusExp.attributedText =surplusString;
}
-(CGFloat)formatDataWith:(NSMutableArray *)arr andLevelValue:(int)levalue andlevelCode:(NSString *)leveCode
{
CGFloat percent = 0;
if ([arr count]!=0) {
for (MineDengJi *model in arr) {
NSString *gradNum = [NSString stringWithFormat:@"%@",model.levelCode];
if ([gradNum isEqualToString:leveCode]) {
int total = ([model.maxValue intValue]) - ([model.minValue intValue]);
int fenduanValue = levalue - ([model.minValue intValue]);
NSLog(@"总分段经验值***%d",total);
percent = (float)fenduanValue/(float)total;
NSString *formatstr= [NSString stringWithFormat:@"%.2f",percent];
percent = [formatstr floatValue];
NSLog(@"percent:%f",percent);
}
}
}
return percent;
}
-(int)lastUplelvelValueWith:(NSMutableArray *)arr andLevelValue:(int)levalue andlevelCode:(NSString *)leveCode{
int last =0;
if ([arr count]!=0) {
for (MineDengJi *model in arr) {
NSString *gradNum = [NSString stringWithFormat:@"%@",model.levelCode];
if ([gradNum isEqualToString:leveCode]) {
last = ([model.maxValue intValue]) - levalue;
}
}
}
return last;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11542" 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="11524"/>
<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="DengJiView0Cell" rowHeight="242" id="KGk-i7-Jjw" customClass="DengJiView0Cell">
<rect key="frame" x="0.0" y="0.0" width="375" height="242"/>
<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="241.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rank_iocn_mark.png" translatesAutoresizingMaskIntoConstraints="NO" id="KBc-7g-ggZ">
<rect key="frame" x="15" y="11" width="12" height="14"/>
<constraints>
<constraint firstAttribute="width" constant="12" id="FYJ-Sd-erS"/>
<constraint firstAttribute="height" constant="14" id="OxQ-dw-ZcY"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="我的等级" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6fe-Ks-cAR">
<rect key="frame" x="32" y="11" width="59" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="Ttu-wb-kGf"/>
<constraint firstAttribute="width" constant="59" id="wwt-C3-QyO"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" red="0.27843137254901962" green="0.65098039215686276" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="mS3-e3-tC3" customClass="IfishDengjiProgress">
<rect key="frame" x="55" y="193" width="265" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="IbW-Cp-TeG"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="khr-g0-UuZ">
<rect key="frame" x="15" y="193" width="31" height="15"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" red="0.97254901960784312" green="0.63921568627450975" blue="0.0" 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="LN2-km-0nz">
<rect key="frame" x="328" y="193" width="31" height="15"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" red="0.97254901959999995" green="0.63921568630000003" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HHp-Bw-dRW">
<rect key="frame" x="85" y="216" width="206" height="15"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" red="0.73333333333333328" green="0.73333333333333328" blue="0.73333333333333328" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="fishrank_smallShrimp.png" translatesAutoresizingMaskIntoConstraints="NO" id="ZAI-hG-VNd">
<rect key="frame" x="114" y="27" width="150" height="124"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="LV1" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Myf-qA-UCT">
<rect key="frame" x="15" y="159" width="344" height="19"/>
<constraints>
<constraint firstAttribute="height" constant="19" id="iET-qZ-rSo"/>
</constraints>
<fontDescription key="fontDescription" type="italicSystem" pointSize="15"/>
<color key="textColor" red="0.99215686274509807" green="0.56862745098039214" blue="0.31372549019607843" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstItem="mS3-e3-tC3" firstAttribute="leading" secondItem="khr-g0-UuZ" secondAttribute="trailing" constant="9" id="6So-Cb-cHu"/>
<constraint firstItem="mS3-e3-tC3" firstAttribute="bottom" secondItem="LN2-km-0nz" secondAttribute="bottom" id="A4N-bg-FPw"/>
<constraint firstItem="Myf-qA-UCT" firstAttribute="leading" secondItem="khr-g0-UuZ" secondAttribute="leading" id="Ccb-q3-YUP"/>
<constraint firstItem="LN2-km-0nz" firstAttribute="top" secondItem="Myf-qA-UCT" secondAttribute="bottom" constant="15" id="FnY-gc-qR1"/>
<constraint firstItem="LN2-km-0nz" firstAttribute="leading" secondItem="mS3-e3-tC3" secondAttribute="trailing" constant="8" symbolic="YES" id="GWP-P9-1Aq"/>
<constraint firstItem="mS3-e3-tC3" firstAttribute="top" secondItem="khr-g0-UuZ" secondAttribute="top" id="GkT-5w-mWV"/>
<constraint firstItem="khr-g0-UuZ" firstAttribute="leading" secondItem="KBc-7g-ggZ" secondAttribute="leading" id="IH2-L5-Zan"/>
<constraint firstItem="Myf-qA-UCT" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" id="IvJ-bZ-t7m"/>
<constraint firstItem="6fe-Ks-cAR" firstAttribute="leading" secondItem="KBc-7g-ggZ" secondAttribute="trailing" constant="5" id="Kml-JV-RQY"/>
<constraint firstItem="KBc-7g-ggZ" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="RCD-4O-bPg"/>
<constraint firstAttribute="bottom" secondItem="Myf-qA-UCT" secondAttribute="bottom" constant="63.5" id="RaS-14-d7i"/>
<constraint firstItem="6fe-Ks-cAR" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="3" id="WwB-K4-fuJ"/>
<constraint firstItem="ZAI-hG-VNd" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" constant="1" id="ewk-0Z-W9s"/>
<constraint firstItem="Myf-qA-UCT" firstAttribute="top" secondItem="ZAI-hG-VNd" secondAttribute="bottom" constant="8" symbolic="YES" id="hCj-fU-0th"/>
<constraint firstAttribute="trailingMargin" secondItem="HHp-Bw-dRW" secondAttribute="trailing" constant="76" id="i7K-Br-SAi"/>
<constraint firstItem="KBc-7g-ggZ" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="11" id="l5k-GI-sUU"/>
<constraint firstItem="HHp-Bw-dRW" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="77" id="ok6-a0-OSI"/>
<constraint firstItem="mS3-e3-tC3" firstAttribute="centerX" secondItem="HHp-Bw-dRW" secondAttribute="centerX" id="uvm-Ng-KOO"/>
<constraint firstItem="HHp-Bw-dRW" firstAttribute="top" secondItem="mS3-e3-tC3" secondAttribute="bottom" constant="8" symbolic="YES" id="wh9-yV-zXp"/>
<constraint firstItem="mS3-e3-tC3" firstAttribute="top" secondItem="LN2-km-0nz" secondAttribute="top" id="wtK-TV-cV4"/>
<constraint firstItem="ZAI-hG-VNd" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="19" id="yzU-E4-Fgk"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="dengJIlabel" destination="Myf-qA-UCT" id="2sY-Ne-RaE"/>
<outlet property="dengJiImg" destination="ZAI-hG-VNd" id="Vto-xj-L0u"/>
<outlet property="dengJiProgress" destination="mS3-e3-tC3" id="ZQQ-KY-jAb"/>
<outlet property="endDengJi" destination="LN2-km-0nz" id="3gE-pb-rA7"/>
<outlet property="startDengJi" destination="khr-g0-UuZ" id="7LP-yi-AuS"/>
<outlet property="surplusExp" destination="HHp-Bw-dRW" id="Uol-z2-esW"/>
</connections>
<point key="canvasLocation" x="-122.5" y="39"/>
</tableViewCell>
</objects>
<resources>
<image name="fishrank_smallShrimp.png" width="150" height="150"/>
<image name="rank_iocn_mark.png" width="11" height="13"/>
</resources>
</document>
@@ -0,0 +1,17 @@
//
// IfishDengjiProgress.h
// CollectionViewTest
//
// Created by imac on 17/2/28.
// Copyright © 2017年 xiang. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IfishDengjiProgress : UIView
@property (nonatomic) float progress;
@property (nonatomic, strong) UIColor *progressColor;
@property (nonatomic,strong) UIColor *trackColor;
@property (nonatomic,strong) UIColor *pointColor;
@end
@@ -0,0 +1,128 @@
//
// IfishDengjiProgress.m
// CollectionViewTest
//
// Created by imac on 17/2/28.
// Copyright © 2017年 xiang. All rights reserved.
//
#import "IfishDengjiProgress.h"
static const CGFloat kProgressViewPonitMinH = 10.0f;
static const CGFloat kProgressViewPonitW = 10.0f;
@interface IfishDengjiProgress ()
@property (nonatomic, strong) UIView *gressView;
@property (nonatomic, strong) UIView *pointView;
@property (nonatomic, strong) UIView *trackView;
@end
//试图最小高度不要小于十
@implementation IfishDengjiProgress
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
}
return self;
}
-(UIView*)gressView
{
if (!_gressView) {
_gressView = [[UIView alloc] initWithFrame:CGRectMake(0,0,0, self.frame.size.height)];
_gressView.backgroundColor = self.progressColor;
[self addSubview:_gressView];
}
return _gressView;
}
-(UIView*)pointView{
if (!_pointView) {
_pointView = [[UIView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.gressView.frame)- kProgressViewPonitW, 0, kProgressViewPonitW, self.frame.size.height)];
_pointView.layer.masksToBounds = YES;
CGFloat ViewW = self.frame.size.height - kProgressViewPonitMinH;
_pointView.layer.cornerRadius = ViewW/2;
_pointView.backgroundColor = self.pointColor;
[self addSubview:_pointView];
}
return _pointView;
}
-(UIView *)trackView{
if (!_trackView) {
_trackView = [[UIView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.gressView.frame), CGRectGetMinY(self.gressView.frame), 0, self.frame.size.height)];
_trackView.backgroundColor = self.trackColor;
[self addSubview:_trackView];
}
return _trackView;
}
- (void)setProgress:(float)progress
{
if (progress >= 1.0) {
_progress = 1.0;
}
else if (progress <= 0) {
_progress = 0.0;
}
else {
_progress = progress;
}
_gressView.frame = CGRectMake(0, 0, _progress * self.frame.size.width, self.frame.size.height);
}
- (void)setProgressColor:(UIColor *)progressColor
{
_progressColor = progressColor;
_gressView.backgroundColor = progressColor;
}
- (void)layoutSubviews
{
[super layoutSubviews];
CGFloat ViewH = self.frame.size.height - kProgressViewPonitMinH;
if (ViewH<0) {
//此时不显示圆点
ViewH = self.frame.size.height;
}
CGFloat oriY = self.frame.size.height/2 - ViewH/2;
self.gressView.frame = CGRectMake(0,oriY, _progress * self.frame.size.width, ViewH);
CGFloat poitH= self.frame.size.height - 4;
self.pointView.frame = CGRectMake(CGRectGetMaxX(self.gressView.frame)- ViewH,self.frame.size.height/2 - poitH/2, ViewH, poitH);
self.trackView.frame = CGRectMake(CGRectGetMaxX(self.gressView.frame), CGRectGetMinY(self.gressView.frame),(1-_progress) * self.frame.size.width, ViewH);
if (_progress==0||_progress ==1) {
self.pointView.hidden = YES;
}else{
self.pointView.hidden = NO;
}
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
@end
@@ -0,0 +1,15 @@
//
// IfishLevelUpView.h
// CollectionViewTest
//
// Created by imac on 17/3/3.
// Copyright © 2017年 xiang. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IfishLevelUpView : UIView
@property (nonatomic,strong) NSString *imgName;
@end
@@ -0,0 +1,66 @@
//
// IfishLevelUpView.m
// CollectionViewTest
//
// Created by imac on 17/3/3.
// Copyright © 2017年 xiang. All rights reserved.
//
#import "IfishLevelUpView.h"
@interface IfishLevelUpView()
@property (nonatomic,strong) UIImageView *leveUpImageView;
@end
@implementation IfishLevelUpView
-(id)initWithFrame:(CGRect)frame{
self = [super initWithFrame:frame];
if (self) {
self.backgroundColor = [UIColor clearColor];
[self creatlevelUpImg];
UIView *holdView =[[UIView alloc] initWithFrame:frame];
holdView.backgroundColor = [UIColor blackColor];
holdView.alpha = 0.6;
[self addSubview:holdView];
[self bringSubviewToFront:self.leveUpImageView];
}
return self;
}
-(void)setImgName:(NSString *)imgName
{
self.leveUpImageView.image = [UIImage imageNamed:imgName];
}
-(void)creatlevelUpImg{
self.leveUpImageView = [[UIImageView alloc] init ];
[self addSubview:self.leveUpImageView];
[UIView animateWithDuration:0.36 delay:0 usingSpringWithDamping:25 initialSpringVelocity:20 options:UIViewAnimationOptionCurveEaseIn animations:^{
self.leveUpImageView.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.width * 1.19);
} completion:^(BOOL finished){
}];
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(dismissSelfViewTap)];
self.leveUpImageView.userInteractionEnabled = YES;
[self.leveUpImageView addGestureRecognizer:tap];
}
-(void)dismissSelfViewTap{
__weak typeof (self)weakSelf = self;
[UIView animateWithDuration:0.36 delay:0 usingSpringWithDamping:25 initialSpringVelocity:20 options:UIViewAnimationOptionCurveEaseOut animations:^{
weakSelf.leveUpImageView.frame = CGRectMake(0, 0, 0, 0);
} completion:^(BOOL finished) {
[weakSelf removeFromSuperview];
}];
}
@end
@@ -0,0 +1,13 @@
//
// JingYanValueBootomViewCell.h
// Ifish
//
// Created by imac on 17/3/1.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface JingYanValueBootomViewCell : UITableViewCell
@end
@@ -0,0 +1,24 @@
//
// JingYanValueBootomViewCell.m
// Ifish
//
// Created by imac on 17/3/1.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "JingYanValueBootomViewCell.h"
@implementation JingYanValueBootomViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11542" 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="11524"/>
<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="JingYanValueBootomViewCell" id="KGk-i7-Jjw" customClass="JingYanValueBootomViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<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="320" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cri-ja-kKA">
<rect key="frame" x="15" y="0.0" width="290" height="23"/>
<color key="backgroundColor" red="0.94509803920000002" green="0.95686274510000002" blue="0.95686274510000002" alpha="1" colorSpace="calibratedRGB"/>
</view>
</subviews>
<constraints>
<constraint firstItem="cri-ja-kKA" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="JxP-Lv-tCP"/>
<constraint firstAttribute="trailing" secondItem="cri-ja-kKA" secondAttribute="trailing" constant="15" id="Zc6-5n-b1V"/>
<constraint firstAttribute="bottom" secondItem="cri-ja-kKA" secondAttribute="bottom" constant="21" id="dsk-Ve-b9f"/>
<constraint firstItem="cri-ja-kKA" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="edf-QH-UkH"/>
</constraints>
</tableViewCellContentView>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,16 @@
//
// JingYanValueViewCell.h
// Ifish
//
// Created by imac on 17/3/1.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "JingYanValuelist.h"
@interface JingYanValueViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *getExplabel;
-(void)loadCellWithJingYan:(JingYanValuelist *)model;
@end
@@ -0,0 +1,35 @@
//
// JingYanValueViewCell.m
// Ifish
//
// Created by imac on 17/3/1.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "JingYanValueViewCell.h"
#import "IfishHelperUtils.h"
@implementation JingYanValueViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
-(void)loadCellWithJingYan:(JingYanValuelist *)model{
NSMutableAttributedString * surplusString = [[NSMutableAttributedString alloc] initWithString:model.ruleRemark];
NSRange range= [IfishHelperUtils getIndexFromString:model.ruleRemark];
[surplusString addAttribute:NSForegroundColorAttributeName value:[UIColor colorWithRed:255.0/255.0 green:193.0/255.0 blue:73.0/255.0 alpha:1] range:range];
self.getExplabel.attributedText = surplusString;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11542" 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="11524"/>
<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="JingYanValueViewCell" id="KGk-i7-Jjw" customClass="JingYanValueViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<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="320" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bnf-lP-hhO">
<rect key="frame" x="15" y="0.0" width="290" height="44"/>
<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="7vu-Pc-dyI">
<rect key="frame" x="14" y="12" width="268" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="eO3-X2-N9c"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.94509803920000002" green="0.95686274510000002" blue="0.95686274510000002" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="7vu-Pc-dyI" firstAttribute="leading" secondItem="bnf-lP-hhO" secondAttribute="leading" constant="14" id="4TA-gC-Y2h"/>
<constraint firstAttribute="trailing" secondItem="7vu-Pc-dyI" secondAttribute="trailing" constant="8" id="fkY-1z-akq"/>
<constraint firstItem="7vu-Pc-dyI" firstAttribute="centerY" secondItem="bnf-lP-hhO" secondAttribute="centerY" id="yJM-l2-qSN"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="bnf-lP-hhO" secondAttribute="trailing" constant="15" id="Ffk-rj-AQo"/>
<constraint firstAttribute="bottom" secondItem="bnf-lP-hhO" secondAttribute="bottom" id="MRy-1R-GeL"/>
<constraint firstItem="bnf-lP-hhO" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="j1N-1s-LlG"/>
<constraint firstItem="bnf-lP-hhO" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="l7d-ln-Htr"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="getExplabel" destination="7vu-Pc-dyI" id="NEh-Zh-x8d"/>
</connections>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,13 @@
//
// JingYanvalueTopViewCell.h
// Ifish
//
// Created by imac on 17/3/1.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface JingYanvalueTopViewCell : UITableViewCell
@end
@@ -0,0 +1,24 @@
//
// JingYanvalueTopViewCell.m
// Ifish
//
// Created by imac on 17/3/1.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "JingYanvalueTopViewCell.h"
@implementation JingYanvalueTopViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11542" 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="11524"/>
<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="JingYanvalueTopViewCell" id="KGk-i7-Jjw" customClass="JingYanvalueTopViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<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="320" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="N14-8L-XiD">
<rect key="frame" x="15" y="5" width="290" height="39"/>
<color key="backgroundColor" red="0.94509803920000002" green="0.95686274510000002" blue="0.95686274510000002" alpha="1" colorSpace="calibratedRGB"/>
</view>
</subviews>
<constraints>
<constraint firstAttribute="bottom" secondItem="N14-8L-XiD" secondAttribute="bottom" id="5Kw-BQ-ea5"/>
<constraint firstItem="N14-8L-XiD" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="5" id="OmI-Dy-hJd"/>
<constraint firstAttribute="trailing" secondItem="N14-8L-XiD" secondAttribute="trailing" constant="15" id="kdU-R6-HTh"/>
<constraint firstItem="N14-8L-XiD" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="y8I-pE-kLp"/>
</constraints>
</tableViewCellContentView>
</tableViewCell>
</objects>
</document>