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
Binary file not shown.
@@ -0,0 +1,27 @@
//
// MineHeaderNewItemsCell.h
// Ifish
//
// Created by imac on 17/3/13.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol MineHeaderItemsDelegate <NSObject>
-(void)tapDengjiAction;
-(void)tapGoldAction;
-(void)tapRenWuAction;
@end
@interface MineHeaderNewItemsCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *levlellabel;
@property (weak, nonatomic) IBOutlet UILabel *goldLabel;
@property (weak, nonatomic) IBOutlet UILabel *taskNumber;
@property (weak, nonatomic) IBOutlet UILabel *dengJi;
@property (weak, nonatomic) IBOutlet UILabel *jinBi;
@property (weak, nonatomic) IBOutlet UILabel *renWu;
@property (nonatomic,assign) id<MineHeaderItemsDelegate> itemsDelegate;
-(void)loadCellData;
@property (nonatomic,strong) UIView *redpontView;
@end
@@ -0,0 +1,113 @@
//
// MineHeaderNewItemsCell.m
// Ifish
//
// Created by imac on 17/3/13.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MineHeaderNewItemsCell.h"
@implementation MineHeaderNewItemsCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
UITapGestureRecognizer *tapDengji=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dengjiAction)];
UITapGestureRecognizer *tapDengji2=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dengjiAction2)];
[self.dengJi addGestureRecognizer:tapDengji];
[self.levlellabel addGestureRecognizer:tapDengji2];
UITapGestureRecognizer *tapgold=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapGoldAction)];
[self.goldLabel addGestureRecognizer:tapgold];
UITapGestureRecognizer *tapgold2=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapGoldAction2)];
[self.jinBi addGestureRecognizer:tapgold2];
UITapGestureRecognizer *tapRenWu=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapRenWuAction)];
UITapGestureRecognizer *tapRenWu2=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapRenWuAction2)];
[self.renWu addGestureRecognizer:tapRenWu];
[self.taskNumber addGestureRecognizer:tapRenWu2];
}
-(void)layoutSubviews{
if (!self.redpontView) {
self.redpontView = [[UIView alloc] init];
NSString *renwu= @"我的任务";
CGSize size = [renwu sizeWithAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14]}];
self.redpontView.frame = CGRectMake(CGRectGetWidth(self.renWu.frame)/2 + size.width/2, 4, 8, 8);
self.redpontView.backgroundColor = RGB(252, 89, 89);
self.redpontView.layer.masksToBounds = YES;
self.redpontView.layer.cornerRadius = 4.0;
[self addSubview:self.redpontView];
[self.renWu bringSubviewToFront:self.redpontView];
}
}
-(void)loadCellData{
IfishUserAsset *userAsset =[dataContorl getAllIfishUserAsset];
self.levlellabel.text = [NSString stringWithFormat:@"LV%@",userAsset.gradeNum];
self.goldLabel.text = [NSString stringWithFormat:@"%ld",(long)userAsset.goldValue];
NSInteger undoneCount = [IfishHelperUtils getUnDoneTaskCount];
self.taskNumber.text = [NSString stringWithFormat:@"%ld",undoneCount];
self.redpontView.hidden = undoneCount ==0? YES : NO;
if (undoneCount==0) {
[[NSNotificationCenter defaultCenter] postNotificationName:IFISHTASK_HAVEDONEALL object:nil];
}
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
-(void)dengjiAction
{
if (self.itemsDelegate) {
[self.itemsDelegate tapDengjiAction];
}
}
-(void)dengjiAction2
{
if (self.itemsDelegate) {
[self.itemsDelegate tapDengjiAction];
}
}
-(void)tapGoldAction
{
if (self.itemsDelegate) {
[self.itemsDelegate tapGoldAction];
}
}
-(void)tapGoldAction2
{
if (self.itemsDelegate) {
[self.itemsDelegate tapGoldAction];
}
}
-(void)tapRenWuAction
{
if (self.itemsDelegate) {
[self.itemsDelegate tapRenWuAction];
}
}
-(void)tapRenWuAction2
{
if (self.itemsDelegate) {
[self.itemsDelegate tapRenWuAction];
}
}
@end
@@ -0,0 +1,89 @@
<?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="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="MineHeaderNewItemsCell" id="KGk-i7-Jjw" customClass="MineHeaderNewItemsCell">
<rect key="frame" x="0.0" y="0.0" width="375" height="60"/>
<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="59.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="等级" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="O45-QR-cHa">
<rect key="frame" x="21" y="0.0" width="82" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9wv-Em-ymJ">
<rect key="frame" x="8" y="29" width="108" height="29"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.9882352941176471" green="0.85098039215686272" blue="0.36862745098039218" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="277777" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="YNL-Tj-AKG">
<rect key="frame" x="134" y="29" width="105" height="29"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.98823529409999999" green="0.85098039219999999" blue="0.36862745099999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UFF-ah-s4k">
<rect key="frame" x="257" y="29" width="110" height="29"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.98823529409999999" green="0.85098039219999999" blue="0.36862745099999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="lAB-ez-ZeT">
<rect key="frame" x="124" y="13" width="2" height="34"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.047058823529411764" green="0.46274509803921571" blue="0.85098039215686272" alpha="0.69555004222972971" colorSpace="custom" customColorSpace="sRGB"/>
</view>
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="uhm-GO-5Ke">
<rect key="frame" x="247" y="13" width="2" height="34"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.047058823530000002" green="0.46274509800000002" blue="0.85098039219999999" alpha="0.69555004220000005" colorSpace="custom" customColorSpace="sRGB"/>
</view>
<label opaque="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="我的任务" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Hah-cc-Hgz">
<rect key="frame" x="271" y="0.0" width="82" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.98823529409999999" green="0.85098039219999999" blue="0.36862745099999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="金币" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="B6H-GU-HKz">
<rect key="frame" x="134" y="0.0" width="105" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</tableViewCellContentView>
<color key="backgroundColor" red="0.039215686270000001" green="0.41960784309999999" blue="0.7725490196" alpha="1" colorSpace="calibratedRGB"/>
<inset key="separatorInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
<connections>
<outlet property="dengJi" destination="O45-QR-cHa" id="LfW-VK-4g0"/>
<outlet property="goldLabel" destination="YNL-Tj-AKG" id="ogk-kt-ySC"/>
<outlet property="jinBi" destination="B6H-GU-HKz" id="CS2-5L-R8c"/>
<outlet property="levlellabel" destination="9wv-Em-ymJ" id="bTK-L1-Xe0"/>
<outlet property="renWu" destination="Hah-cc-Hgz" id="gtx-WH-xHK"/>
<outlet property="taskNumber" destination="UFF-ah-s4k" id="DPn-Bh-Vxz"/>
</connections>
<point key="canvasLocation" x="25.5" y="52"/>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,28 @@
//
// WodeUserAssetCell.h
// Ifish
//
// Created by imac on 17/3/20.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol MineHeaderItemsDelegate <NSObject>
-(void)tapDengjiAction;
-(void)tapGoldAction;
-(void)tapRenWuAction;
@end
@interface WodeUserAssetCell : UITableViewCell
@property (strong, nonatomic) UILabel *levlellabel;
@property (strong, nonatomic) UILabel *goldLabel;
@property (strong, nonatomic) UILabel *taskNumber;
@property (strong, nonatomic) UILabel *dengJi;
@property (strong, nonatomic) UILabel *jinBi;
@property (strong, nonatomic) UILabel *renWu;
@property (nonatomic,assign) id<MineHeaderItemsDelegate> itemsDelegate;
-(void)loadCellData;
@property (nonatomic,strong) UIView *redpontView;
@end
@@ -0,0 +1,182 @@
//
// WodeUserAssetCell.m
// Ifish
//
// Created by imac on 17/3/20.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "WodeUserAssetCell.h"
@implementation WodeUserAssetCell
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
CGFloat WiD = (kScreenSize.width - 2) /3;
//等级
UILabel *dengJi = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, WiD, 30)];
dengJi.text =@"等级";
dengJi.textColor = [UIColor whiteColor];
dengJi.textAlignment = NSTextAlignmentCenter;
dengJi.font = [UIFont systemFontOfSize:14.0];
self.dengJi = dengJi;
self.dengJi.userInteractionEnabled = YES;
[self addSubview:self.dengJi];
UILabel *levlellabel=[[UILabel alloc] initWithFrame:CGRectMake(0,30, WiD, 30)];;
levlellabel.textColor = RGB(252, 217, 94);
levlellabel.textAlignment = NSTextAlignmentCenter;
levlellabel.font = [UIFont systemFontOfSize:14.0];
self.levlellabel = levlellabel;
self.levlellabel.userInteractionEnabled = YES;
[self addSubview:self.levlellabel];
//line1
UIView *line1= [[UIView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.dengJi.frame), 13, 1, 60 -13*2)];
line1.backgroundColor = RGB(12, 118, 217);
line1.alpha = 0.7;
[self addSubview:line1];
//金币
UILabel *jinBi = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(line1.frame),0, WiD, 30)];
jinBi.text =@"金币";
jinBi.textColor = [UIColor whiteColor];
jinBi.textAlignment = NSTextAlignmentCenter;
jinBi.font = [UIFont systemFontOfSize:14.0];
self.jinBi = jinBi;
self.jinBi.userInteractionEnabled = YES;
[self addSubview:self.jinBi];
UILabel *goldLabel=[[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(line1.frame),30, WiD, 30)];;
goldLabel.textColor = RGB(252, 217, 94);
goldLabel.textAlignment = NSTextAlignmentCenter;
goldLabel.font = [UIFont systemFontOfSize:14.0];
self.goldLabel = goldLabel;
self.goldLabel.userInteractionEnabled = YES;
[self addSubview:self.goldLabel];
//line2
UIView *line2= [[UIView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.jinBi.frame), 13, 1, 60 -13*2)];
line2.backgroundColor = RGB(12, 118, 217);
line2.alpha = 0.7;
[self addSubview:line2];
// 任务
UILabel *renWu = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(line2.frame),0, WiD, 30)];
renWu.text =@"我的任务";
renWu.textColor = [UIColor whiteColor];
renWu.textAlignment = NSTextAlignmentCenter;
renWu.font = [UIFont systemFontOfSize:14.0];
self.renWu = renWu;
self.renWu.userInteractionEnabled = YES;
[self addSubview:self.renWu];
self.redpontView = [[UIView alloc] init];
NSString *renwu= @"我的任务";
CGSize size = [renwu sizeWithAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14]}];
self.redpontView.frame = CGRectMake(WiD/2 + size.width/2, 4, 8, 8);
self.redpontView.backgroundColor = RGB(252, 89, 89);
self.redpontView.layer.masksToBounds = YES;
self.redpontView.layer.cornerRadius = 4.0;
[self.renWu addSubview:self.redpontView];
UILabel *taskNumber=[[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(line2.frame),30, WiD, 30)];;
taskNumber.textColor = RGB(252, 217, 94);
taskNumber.textAlignment = NSTextAlignmentCenter;
taskNumber.font = [UIFont systemFontOfSize:14.0];
self.taskNumber = taskNumber;
self.taskNumber.userInteractionEnabled = YES;
[self addSubview:self.taskNumber];
[self addTapGesture];
}
return self;
}
-(void)addTapGesture{
UITapGestureRecognizer *tapDengji=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dengjiAction)];
UITapGestureRecognizer *tapDengji2=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dengjiAction2)];
[self.dengJi addGestureRecognizer:tapDengji];
[self.levlellabel addGestureRecognizer:tapDengji2];
UITapGestureRecognizer *tapgold=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapGoldAction)];
[self.goldLabel addGestureRecognizer:tapgold];
UITapGestureRecognizer *tapgold2=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapGoldAction2)];
[self.jinBi addGestureRecognizer:tapgold2];
UITapGestureRecognizer *tapRenWu=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapRenWuAction)];
UITapGestureRecognizer *tapRenWu2=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapRenWuAction2)];
[self.renWu addGestureRecognizer:tapRenWu];
[self.taskNumber addGestureRecognizer:tapRenWu2];
}
-(void)dengjiAction
{
if (self.itemsDelegate) {
[self.itemsDelegate tapDengjiAction];
}
}
-(void)dengjiAction2
{
if (self.itemsDelegate) {
[self.itemsDelegate tapDengjiAction];
}
}
-(void)tapGoldAction
{
if (self.itemsDelegate) {
[self.itemsDelegate tapGoldAction];
}
}
-(void)tapGoldAction2
{
if (self.itemsDelegate) {
[self.itemsDelegate tapGoldAction];
}
}
-(void)tapRenWuAction
{
if (self.itemsDelegate) {
[self.itemsDelegate tapRenWuAction];
}
}
-(void)tapRenWuAction2
{
if (self.itemsDelegate) {
[self.itemsDelegate tapRenWuAction];
}
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
-(void)loadCellData{
IfishUserAsset *userAsset =[dataContorl getAllIfishUserAsset];
self.levlellabel.text = [NSString stringWithFormat:@"LV%@",userAsset.gradeNum];
self.goldLabel.text = [NSString stringWithFormat:@"%ld",(long)userAsset.goldValue];
NSInteger undoneCount = [IfishHelperUtils getUnDoneTaskCount];
self.taskNumber.text = [NSString stringWithFormat:@"%ld",undoneCount];
self.redpontView.hidden = undoneCount ==0? YES : NO;
if (undoneCount==0) {
[[NSNotificationCenter defaultCenter] postNotificationName:IFISHTASK_HAVEDONEALL object:nil];
}
}
@end
@@ -0,0 +1,17 @@
//
// InfoQianMingCell.h
// Ifish
//
// Created by imac on 16/5/12.
// Copyright © 2016年 imac. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface InfoQianMingCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UITextView *infoQianMingView;
-(void)loadQianmingWith:(UserModel*)model;
@end
@@ -0,0 +1,33 @@
//
// InfoQianMingCell.m
// Ifish
//
// Created by imac on 16/5/12.
// Copyright © 2016年 imac. All rights reserved.
//
#import "InfoQianMingCell.h"
#import "UserModel.h"
@implementation InfoQianMingCell
- (void)awakeFromNib {
[super awakeFromNib];
self.backgroundView=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"set_cellBack_double"]];
// Initialization code
}
-(void)loadQianmingWith:(UserModel*)model{
if ([model.signature isKindOfClass:[NSNull class]]) {
self.infoQianMingView.text=@"";
}else{
self.infoQianMingView.text=model.signature;
}
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10117" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<capability name="Constraints to layout margins" minToolsVersion="6.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="InfoQianMingCell" id="KGk-i7-Jjw" customClass="InfoQianMingCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="88"/>
<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="87"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="个性签名" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4Lb-Ir-cYC">
<rect key="frame" x="20" y="11" width="62" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" red="0.70980392160000005" green="0.70980392160000005" blue="0.70980392160000005" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" text="qianming" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="eVd-UK-3SE">
<rect key="frame" x="90" y="8" width="215" height="71"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="width" constant="215" id="GAo-Tr-Em3"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
</textView>
</subviews>
<constraints>
<constraint firstItem="eVd-UK-3SE" firstAttribute="leading" secondItem="4Lb-Ir-cYC" secondAttribute="trailing" constant="8" id="FUw-hK-WYS"/>
<constraint firstItem="eVd-UK-3SE" firstAttribute="bottom" secondItem="H2p-sc-9uM" secondAttribute="bottomMargin" id="Khi-rt-5s7"/>
<constraint firstItem="4Lb-Ir-cYC" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="3" id="L6s-mo-6kW"/>
<constraint firstAttribute="bottomMargin" secondItem="4Lb-Ir-cYC" secondAttribute="bottom" constant="47" id="M1F-nk-ABB"/>
<constraint firstItem="eVd-UK-3SE" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" id="aQK-h2-GKa"/>
<constraint firstItem="eVd-UK-3SE" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="82" id="hqh-eK-NZ6"/>
<constraint firstAttribute="trailingMargin" secondItem="eVd-UK-3SE" secondAttribute="trailing" constant="7" id="qbO-DE-iAs"/>
<constraint firstAttribute="leadingMargin" secondItem="4Lb-Ir-cYC" secondAttribute="leading" constant="-12" id="sbM-xl-fFS"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="infoQianMingView" destination="eVd-UK-3SE" id="MPD-mw-ptx"/>
</connections>
<point key="canvasLocation" x="277" y="287"/>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,17 @@
//
// InfoViewNiChengCell.h
// Ifish
//
// Created by imac on 16/5/12.
// Copyright © 2016年 imac. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UserModel.h"
@interface InfoViewNiChengCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UITextField *niChengField;
-(void)loadNiChengwith:(UserModel*)model;
@end
@@ -0,0 +1,34 @@
//
// InfoViewNiChengCell.m
// Ifish
//
// Created by imac on 16/5/12.
// Copyright © 2016年 imac. All rights reserved.
//
#import "InfoViewNiChengCell.h"
@implementation InfoViewNiChengCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
self.backgroundView=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"set_cellBack"]];
}
-(void)loadNiChengwith:(UserModel*)model{
if ([model.nickName isKindOfClass:[NSNull class]]) {
self.niChengField.text=@"";
}else{
self.niChengField.text=model.nickName;
}
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10117" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<capability name="Constraints to layout margins" minToolsVersion="6.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="InfoViewNiChengCell" id="KGk-i7-Jjw" customClass="InfoViewNiChengCell">
<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"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="昵称" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dwQ-P9-nrM">
<rect key="frame" x="20" y="11" width="35" height="21"/>
<constraints>
<constraint firstAttribute="width" constant="35" id="T17-iz-7fl"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" red="0.70980392160000005" green="0.70980392160000005" blue="0.70980392160000005" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入昵称" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="8Ha-fy-N2p">
<rect key="frame" x="47" y="6" width="226" height="31"/>
<constraints>
<constraint firstAttribute="height" constant="31" id="eiH-kd-afY"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<textInputTraits key="textInputTraits"/>
</textField>
</subviews>
<constraints>
<constraint firstItem="dwQ-P9-nrM" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="12" id="0oC-0D-hOS"/>
<constraint firstItem="8Ha-fy-N2p" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="Jkj-pN-kvW"/>
<constraint firstItem="dwQ-P9-nrM" firstAttribute="centerY" secondItem="8Ha-fy-N2p" secondAttribute="centerY" id="XNJ-xr-ldR"/>
<constraint firstAttribute="trailingMargin" secondItem="8Ha-fy-N2p" secondAttribute="trailing" constant="39" id="pH9-t6-3ha"/>
<constraint firstItem="8Ha-fy-N2p" firstAttribute="leading" secondItem="dwQ-P9-nrM" secondAttribute="trailing" constant="-8" id="u81-7x-3S2"/>
<constraint firstItem="dwQ-P9-nrM" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="3" id="wrX-y6-oye"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="niChengField" destination="8Ha-fy-N2p" id="5Fr-1a-FKO"/>
</connections>
<point key="canvasLocation" x="300" y="275"/>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,15 @@
//
// InfoXingBieCell.h
// Ifish
//
// Created by imac on 16/5/12.
// Copyright © 2016年 imac. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UserModel.h"
@interface InfoXingBieCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIButton *InfoXingBieBtn;
-(void)loadXingBieWith:(UserModel*)model;
@end
@@ -0,0 +1,39 @@
//
// InfoXingBieCell.m
// Ifish
//
// Created by imac on 16/5/12.
// Copyright © 2016年 imac. All rights reserved.
//
#import "InfoXingBieCell.h"
@implementation InfoXingBieCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
self.backgroundView=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"set_cellBack"]];
}
-(void)loadXingBieWith:(UserModel*)model{
if ([model.userSex isKindOfClass:[NSNull class]] ) {
self.InfoXingBieBtn.titleLabel.text=@"";
}else if ([model.userSex isEqualToString:@"1"]){
[self.InfoXingBieBtn setTitle:@"" forState:UIControlStateNormal];
}else if ([model.userSex isEqualToString:@"0"]){
[self.InfoXingBieBtn setTitle:@"" forState:UIControlStateNormal];
}
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10117" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<capability name="Constraints to layout margins" minToolsVersion="6.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="InfoXingBieCell" id="KGk-i7-Jjw" customClass="InfoXingBieCell">
<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"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="性别" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SyG-Ct-riZ">
<rect key="frame" x="20" y="11" width="42" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="cAH-FZ-LCZ"/>
<constraint firstAttribute="width" constant="42" id="jam-4Z-FiA"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" red="0.70980392160000005" green="0.70980392160000005" blue="0.70980392160000005" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="b4D-sK-n7y">
<rect key="frame" x="104" y="7" width="112" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="Wz4-4N-9Rx"/>
</constraints>
<state key="normal" title="请选择性别">
<color key="titleColor" cocoaTouchSystemColor="darkTextColor"/>
</state>
</button>
</subviews>
<constraints>
<constraint firstItem="SyG-Ct-riZ" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="Vdr-im-wSx"/>
<constraint firstAttribute="trailingMargin" secondItem="b4D-sK-n7y" secondAttribute="trailing" constant="96" id="aEe-7Q-4MP"/>
<constraint firstItem="b4D-sK-n7y" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="o3C-aD-LlP"/>
<constraint firstItem="b4D-sK-n7y" firstAttribute="leading" secondItem="SyG-Ct-riZ" secondAttribute="trailing" constant="42" id="sDL-mJ-GfW"/>
<constraint firstAttribute="leadingMargin" secondItem="SyG-Ct-riZ" secondAttribute="leading" constant="-12" id="t46-jc-kBs"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="InfoXingBieBtn" destination="b4D-sK-n7y" id="6uC-hh-92h"/>
</connections>
<point key="canvasLocation" x="316" y="345"/>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,14 @@
//
// infoSureBtnCell.h
// Ifish
//
// Created by imac on 16/5/12.
// Copyright © 2016年 imac. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface infoSureBtnCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIButton *infoSureBtn;
@end
@@ -0,0 +1,28 @@
//
// infoSureBtnCell.m
// Ifish
//
// Created by imac on 16/5/12.
// Copyright © 2016年 imac. All rights reserved.
//
#import "infoSureBtnCell.h"
@implementation infoSureBtnCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
self.infoSureBtn.layer.masksToBounds = YES;
self.infoSureBtn.layer.cornerRadius =5;
self.backgroundColor= COLOR_MIAN;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10117" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<capability name="Constraints to layout margins" minToolsVersion="6.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="infoSureBtnCell" id="KGk-i7-Jjw" customClass="infoSureBtnCell">
<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"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ys0-1X-s6J">
<rect key="frame" x="10" y="0.0" width="300" height="44"/>
<color key="backgroundColor" red="0.08235294118" green="0.66274509800000003" blue="0.91764705879999997" alpha="1" colorSpace="calibratedRGB"/>
<state key="normal" title="确 定">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
</button>
</subviews>
<constraints>
<constraint firstItem="ys0-1X-s6J" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="-8" id="4sF-ce-E3V"/>
<constraint firstAttribute="trailingMargin" secondItem="ys0-1X-s6J" secondAttribute="trailing" constant="2" id="58E-NW-taJ"/>
<constraint firstItem="ys0-1X-s6J" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="2" id="8qT-8Q-qog"/>
<constraint firstItem="ys0-1X-s6J" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="rz9-0S-qnu"/>
<constraint firstAttribute="bottomMargin" secondItem="ys0-1X-s6J" secondAttribute="bottom" constant="-9" id="wcx-TX-aCb"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="infoSureBtn" destination="ys0-1X-s6J" id="aeF-BT-PFM"/>
</connections>
<point key="canvasLocation" x="373" y="292"/>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,15 @@
//
// leftCell.h
// Ifish
//
// Created by imac on 15/10/7.
// Copyright © 2015年 imac. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface leftCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *headimag;
@end
@@ -0,0 +1,23 @@
//
// leftCell.m
// Ifish
//
// Created by imac on 15/10/7.
// Copyright © 2015年 imac. All rights reserved.
//
#import "leftCell.h"
@implementation leftCell
- (void)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,52 @@
<?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" 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="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" misplaced="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="leftCell" rowHeight="50" id="KGk-i7-Jjw" customClass="leftCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="50"/>
<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="49.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" id="1wO-tK-lC3">
<rect key="frame" x="15" y="15" width="20" height="20"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
</imageView>
<view contentMode="scaleToFill" misplaced="YES" id="Igz-rf-BPX">
<rect key="frame" x="43" y="49" width="320" height="1"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.94901960784313721" alpha="1" colorSpace="calibratedRGB"/>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="t7a-Bw-4Li">
<rect key="frame" x="43" y="10" width="254" height="30"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</tableViewCellContentView>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<connections>
<outlet property="headimag" destination="1wO-tK-lC3" id="fyw-pI-kg2"/>
<outlet property="titleLabel" destination="t7a-Bw-4Li" id="920-VL-4gT"/>
</connections>
<point key="canvasLocation" x="-133" y="77"/>
</tableViewCell>
</objects>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination" type="retina4_7.fullscreen"/>
</simulatedMetricsContainer>
</document>