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,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>