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 @@
//
// EditeMemberTitleViewCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface EditeMemberTitleViewCell : UITableViewCell
@end
@@ -0,0 +1,24 @@
//
// EditeMemberTitleViewCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "EditeMemberTitleViewCell.h"
@implementation EditeMemberTitleViewCell
- (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,49 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="EditeMemberTitleViewCell" rowHeight="44" id="KGk-i7-Jjw" customClass="EditeMemberTitleViewCell">
<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="44"/>
<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="krY-J1-1At">
<rect key="frame" x="15" y="11" width="61.5" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="ZFN-wd-vJw"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="5CL-nE-xAN">
<rect key="frame" x="0.0" y="43" width="320" height="1"/>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.94901960784313721" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="pVA-Pz-bsd"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="5CL-nE-xAN" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="8f4-3h-bwu"/>
<constraint firstAttribute="trailing" secondItem="5CL-nE-xAN" secondAttribute="trailing" id="LRR-TD-YaI"/>
<constraint firstItem="krY-J1-1At" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="Ujg-4k-1Uf"/>
<constraint firstAttribute="bottom" secondItem="5CL-nE-xAN" secondAttribute="bottom" constant="-1" id="bo9-wS-fIS"/>
<constraint firstItem="krY-J1-1At" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="qNT-VH-6uG"/>
</constraints>
</tableViewCellContentView>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,23 @@
//
// KebordExternAddTextInputView.h
// Ifish
//
// Created by imac on 17/4/14.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface KebordExternAddTextInputView : UIView
@property (nonatomic, strong) UITextField *inputTextField;
@property (nonatomic, strong) UIButton *doneButton;
@property (nonatomic, copy) void (^doneTextInfoHandler)(NSString *content);
@property (nonatomic, strong) UIView *InfoInputView;
@property (nonatomic, copy) NSString *palceholderText;
@property (nonatomic, copy) NSString *customText;
-(void)setPalceholderText:(NSString *)palceholderText;
-(void)setCustomText:(NSString *)customText;
@end
@@ -0,0 +1,173 @@
//
// KebordExternAddTextInputView.m
// Ifish
//
// Created by imac on 17/4/14.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "KebordExternAddTextInputView.h"
@interface KebordExternAddTextInputView ()<UITextFieldDelegate>
@end
@implementation KebordExternAddTextInputView
-(instancetype)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
self.backgroundColor = [UIColor clearColor];
//self.alpha = 0.3;
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(dismissSelfViewTap)];
[self addGestureRecognizer:tap];
[self creatInpuView];
//黑色背景 个人强烈建议加上 需求不要去掉
UIView *holdView =[[UIView alloc] initWithFrame:frame];
holdView.backgroundColor = [UIColor blackColor];
holdView.alpha = 0.3;
[self addSubview:holdView];
[self bringSubviewToFront:self.InfoInputView];
}
return self;
}
-(void)creatInpuView{
NSArray *commentInputNibs = [[NSBundle mainBundle]loadNibNamed:@"KebordExternAddTextInputView" owner:self options:nil];
UIView *commentInputView = [commentInputNibs objectAtIndex:0];
self.InfoInputView = commentInputView;
self.inputTextField = [commentInputView.subviews objectAtIndex:0];
self.doneButton = [commentInputView.subviews objectAtIndex:1];
self.doneButton.clipsToBounds = YES;
//self.doneButton.layer.cornerRadius = self.doneButton.frame.size.height/2;
self.doneButton.layer.cornerRadius = 3;
self.inputTextField.delegate = self;
[self.inputTextField becomeFirstResponder];
self.InfoInputView .frame = CGRectMake(0, self.frame.size.height-self.InfoInputView .frame.size.height, self.frame.size.width, self.InfoInputView .frame.size.height);
[self addSubview:self.InfoInputView];
[self bringSubviewToFront:self.InfoInputView ];
[self.doneButton addTarget:self action:@selector(sendCommend) forControlEvents:UIControlEventTouchUpInside];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWillHide:)
name:UIKeyboardWillHideNotification
object:nil];
}
-(void)setPalceholderText:(NSString *)palceholderText
{
_palceholderText = palceholderText;
}
-(void)setCustomText:(NSString *)customText
{
_customText = customText;
//设置默认文本
self.inputTextField.text = _customText;
}
- (void)sendCommend
{
if (self.inputTextField.text.length > 100) {
[self makeToast:@"内容不能超过100字"];
return;
}
if (self.inputTextField.text.length == 0) {
[self makeToast:@"内容不能为空"];
return;
}
if (self.doneTextInfoHandler) {
self.doneTextInfoHandler(self.inputTextField.text);
}
[self dismissKeyboard];
}
- (void)dismissKeyboard
{
if ([self.inputTextField becomeFirstResponder]) {
[self.inputTextField resignFirstResponder];
}
}
-(void)dismissSelfViewTap{
[self removeFromSuperview];
}
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField;
{
if (textField ==self.inputTextField) {
textField.placeholder = _palceholderText;
}
return YES;
}
-(BOOL)textFieldShouldReturn:(UITextField *)textField{
if (textField ==self.inputTextField) {
[self sendCommend];
}
return YES;
}
- (void)keyboardWillShow:(NSNotification*)notification {
// get keyboard size and loctaion
CGRect keyboardBounds;
[[notification.userInfo valueForKey:UIKeyboardFrameEndUserInfoKey] getValue: &keyboardBounds];
NSNumber *duration = [notification.userInfo objectForKey:UIKeyboardAnimationDurationUserInfoKey];
NSNumber *curve = [notification.userInfo objectForKey:UIKeyboardAnimationCurveUserInfoKey];
// Need to translate the bounds to account for rotation.
keyboardBounds = [self convertRect:keyboardBounds toView:nil];
// get a rect for the textView frame
CGRect commentInputViewFrame = self.InfoInputView.frame;
commentInputViewFrame.origin.y = self.bounds.size.height - (keyboardBounds.size.height + commentInputViewFrame.size.height);
// animations settings
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationDuration:[duration doubleValue]];
[UIView setAnimationCurve:[curve intValue]];
// set views with new info
self.InfoInputView.frame = commentInputViewFrame;
[UIView commitAnimations];
}
- (void) keyboardWillHide:(NSNotification *)note
{
[self dismissSelfView];
}
-(void)dismissSelfView
{
[self removeFromSuperview];
}
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
self.InfoInputView = nil;
self.inputTextField = nil;
}
@end
@@ -0,0 +1,48 @@
<?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"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="320" height="50"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="vIb-qL-ENL">
<rect key="frame" x="8" y="10" width="224" height="30"/>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" returnKeyType="done"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="VYd-Or-tNp">
<rect key="frame" x="258" y="10" width="46" height="30"/>
<color key="backgroundColor" red="0.26274509800000001" green="0.72941176470000002" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="46" id="NCn-Ae-VQu"/>
<constraint firstAttribute="height" constant="30" id="R78-Oa-Ive"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<state key="normal" title="完成"/>
</button>
</subviews>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="VYd-Or-tNp" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="6sh-Dr-qre"/>
<constraint firstAttribute="trailing" secondItem="VYd-Or-tNp" secondAttribute="trailing" constant="16" id="7d6-3B-9ze"/>
<constraint firstItem="vIb-qL-ENL" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="Drg-ue-jGb"/>
<constraint firstItem="VYd-Or-tNp" firstAttribute="leading" secondItem="vIb-qL-ENL" secondAttribute="trailing" constant="26" id="GbO-OV-KEG"/>
<constraint firstItem="vIb-qL-ENL" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="8" id="Z1T-GN-PDH"/>
</constraints>
<nil key="simulatedStatusBarMetrics"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="8" y="106"/>
</view>
</objects>
</document>
@@ -0,0 +1,14 @@
//
// MemberDetailMarkDetailViewCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MemberDetailMarkDetailViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UITextView *markTexView;
@end
@@ -0,0 +1,24 @@
//
// MemberDetailMarkDetailViewCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemberDetailMarkDetailViewCell.h"
@implementation MemberDetailMarkDetailViewCell
- (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,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" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MemberDetailMarkDetailViewCell" id="KGk-i7-Jjw" customClass="MemberDetailMarkDetailViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="76"/>
<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="75.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="FPM-np-E3Q">
<rect key="frame" x="15" y="8" width="297" height="59"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
</textView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="uy5-ST-Hy1">
<rect key="frame" x="0.0" y="75" width="320" height="1"/>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="fCq-Vx-S7B"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="FPM-np-E3Q" firstAttribute="trailing" secondItem="H2p-sc-9uM" secondAttribute="trailingMargin" id="EEc-Rc-fXb"/>
<constraint firstAttribute="trailing" secondItem="uy5-ST-Hy1" secondAttribute="trailing" id="MHt-LX-L9j"/>
<constraint firstItem="FPM-np-E3Q" firstAttribute="bottom" secondItem="H2p-sc-9uM" secondAttribute="bottomMargin" id="QoL-OQ-DgX"/>
<constraint firstItem="FPM-np-E3Q" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" id="VmR-vq-Ufv"/>
<constraint firstAttribute="bottom" secondItem="uy5-ST-Hy1" secondAttribute="bottom" constant="-0.5" id="jJG-Ub-g3o"/>
<constraint firstItem="FPM-np-E3Q" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="mWS-Tx-2uL"/>
<constraint firstItem="uy5-ST-Hy1" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="u3C-Kk-Wb8"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="markTexView" destination="FPM-np-E3Q" id="hxd-Ej-LMC"/>
</connections>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,13 @@
//
// MemberDetailMarkViewCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MemberDetailMarkViewCell : UITableViewCell
@end
@@ -0,0 +1,24 @@
//
// MemberDetailMarkViewCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemberDetailMarkViewCell.h"
@implementation MemberDetailMarkViewCell
- (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,47 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MemberDetailMarkViewCell" rowHeight="35" id="KGk-i7-Jjw" customClass="MemberDetailMarkViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="35"/>
<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="34.5"/>
<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="PZK-HZ-Ytf">
<rect key="frame" x="15" y="9.5" width="57.5" height="17"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="UB5-R5-XOZ">
<rect key="frame" x="0.0" y="34" width="320" height="1"/>
<color key="backgroundColor" red="0.94901960780000005" green="0.94901960780000005" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="geU-9P-j1s"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="UB5-R5-XOZ" secondAttribute="trailing" id="7hS-Jt-Odm"/>
<constraint firstItem="PZK-HZ-Ytf" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="As0-34-pd5"/>
<constraint firstItem="PZK-HZ-Ytf" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="ILj-n6-bBE"/>
<constraint firstItem="UB5-R5-XOZ" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="S8y-Y8-wQP"/>
<constraint firstAttribute="bottom" secondItem="UB5-R5-XOZ" secondAttribute="bottom" constant="-0.5" id="pc0-gx-HFa"/>
</constraints>
</tableViewCellContentView>
<point key="canvasLocation" x="25" y="51.5"/>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,14 @@
//
// MemberEditeCommitBtnViewCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MemberEditeCommitBtnViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIButton *sureBtn;
@end
@@ -0,0 +1,27 @@
//
// MemberEditeCommitBtnViewCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemberEditeCommitBtnViewCell.h"
@implementation MemberEditeCommitBtnViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
_sureBtn.layer.masksToBounds = YES;
_sureBtn.layer.cornerRadius = 5;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MemberEditeCommitBtnViewCell" id="KGk-i7-Jjw" customClass="MemberEditeCommitBtnViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="90"/>
<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="89"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="zBs-w6-Qdm">
<rect key="frame" x="20" y="29" width="280" height="44"/>
<color key="backgroundColor" red="0.0" green="0.72156862745098038" blue="0.93725490196078431" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="280" id="9YA-t1-dhs"/>
<constraint firstAttribute="height" constant="44" id="kdE-Vy-Xab"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<state key="normal" title="确 定"/>
</button>
</subviews>
<constraints>
<constraint firstItem="zBs-w6-Qdm" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" id="Zfc-pA-gQq"/>
<constraint firstItem="zBs-w6-Qdm" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="21" id="hAi-z7-XgG"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="sureBtn" destination="zBs-w6-Qdm" id="oI3-L7-rkr"/>
</connections>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,15 @@
//
// MemberEditeViewLocationCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MemberEditeViewLocationCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UITextView *locationDetail;
@end
@@ -0,0 +1,24 @@
//
// MemberEditeViewLocationCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemberEditeViewLocationCell.h"
@implementation MemberEditeViewLocationCell
- (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,41 @@
<?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="MemberEditeViewLocationCell" id="KGk-i7-Jjw" customClass="MemberEditeViewLocationCell">
<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>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="tnJ-RL-Jtt">
<rect key="frame" x="15" y="8" width="298" height="72"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
</textView>
</subviews>
<constraints>
<constraint firstItem="tnJ-RL-Jtt" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="8" id="4A9-Yd-eqI"/>
<constraint firstAttribute="bottom" secondItem="tnJ-RL-Jtt" secondAttribute="bottom" constant="8" id="9gF-6x-wTY"/>
<constraint firstAttribute="trailing" secondItem="tnJ-RL-Jtt" secondAttribute="trailing" constant="7" id="Hsr-dj-kCa"/>
<constraint firstItem="tnJ-RL-Jtt" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="yPh-Aj-ade"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="locationDetail" destination="tnJ-RL-Jtt" id="T7q-Yp-H5u"/>
</connections>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,18 @@
//
// MemberManageListViewCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MemberNanageListData.h"
@interface MemberManageListViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *huiYuanImg;
@property (weak, nonatomic) IBOutlet UILabel *huiYuanName;
@property (weak, nonatomic) IBOutlet UILabel *lastLoginTime;
-(void)loadList:(MemberNanageListData*)data;
@end
@@ -0,0 +1,34 @@
//
// MemberManageListViewCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemberManageListViewCell.h"
#import "UIImageView+WebCache.h"
@implementation MemberManageListViewCell
- (void)awakeFromNib {
[super awakeFromNib];
self.huiYuanImg.layer.masksToBounds = YES;
self.huiYuanImg.layer.cornerRadius = self.huiYuanImg.frame.size.height/2;
}
-(void)loadList:(MemberNanageListData*)data
{
NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,data.userImg];
[self.huiYuanImg sd_setImageWithURL:[NSURL URLWithString:str]];
self.huiYuanName.text = [NSString stringWithFormat:@"%@(%@)",data.nickName,data.userName];
self.lastLoginTime.text = [NSString stringWithFormat:@"最后登录时间:%@",data.loginTime];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MemberManageListViewCell" rowHeight="60" id="KGk-i7-Jjw" customClass="MemberManageListViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" 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="320" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="UcP-H7-edU">
<rect key="frame" x="10" y="5" width="50" height="50"/>
<constraints>
<constraint firstAttribute="width" constant="50" id="LdW-LO-iCK"/>
<constraint firstAttribute="height" constant="50" id="Nd5-DE-lcH"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vtU-Xx-jGN">
<rect key="frame" x="0.0" y="59" width="320" height="1"/>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.94901960784313721" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="4oa-0B-0Ae"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="会员名 (备注名)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Spv-Zm-dEc">
<rect key="frame" x="65" y="8" width="255" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="4i5-Iy-HVL"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="最后登录时间" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RC7-ig-e86">
<rect key="frame" x="65" y="31" width="255" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="YAN-if-Xht"/>
</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>
<constraints>
<constraint firstAttribute="trailingMargin" secondItem="RC7-ig-e86" secondAttribute="trailing" constant="-8" id="MAg-gq-8Gb"/>
<constraint firstItem="RC7-ig-e86" firstAttribute="top" secondItem="Spv-Zm-dEc" secondAttribute="bottom" constant="8" id="Wz7-Ma-Smb"/>
<constraint firstItem="vtU-Xx-jGN" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="XJD-Bg-8wj"/>
<constraint firstAttribute="trailingMargin" secondItem="Spv-Zm-dEc" secondAttribute="trailing" constant="-8" id="f8b-y8-6Xd"/>
<constraint firstItem="Spv-Zm-dEc" firstAttribute="leading" secondItem="UcP-H7-edU" secondAttribute="trailing" constant="5" id="iKP-a3-aDS"/>
<constraint firstItem="UcP-H7-edU" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="2" id="iOW-8E-fkM"/>
<constraint firstItem="RC7-ig-e86" firstAttribute="leading" secondItem="UcP-H7-edU" secondAttribute="trailing" constant="5" id="oBs-QL-PQ8"/>
<constraint firstItem="UcP-H7-edU" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="rki-B0-tF3"/>
<constraint firstItem="Spv-Zm-dEc" firstAttribute="top" secondItem="UcP-H7-edU" secondAttribute="top" constant="3" id="saT-2D-EPD"/>
<constraint firstAttribute="bottom" secondItem="vtU-Xx-jGN" secondAttribute="bottom" constant="-0.5" id="t7X-nY-ceg"/>
<constraint firstAttribute="trailing" secondItem="vtU-Xx-jGN" secondAttribute="trailing" id="x2i-DC-IbO"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="huiYuanImg" destination="UcP-H7-edU" id="vEF-z3-Xsq"/>
<outlet property="huiYuanName" destination="Spv-Zm-dEc" id="c3Y-eo-fGc"/>
<outlet property="lastLoginTime" destination="RC7-ig-e86" id="FS5-8K-hzv"/>
</connections>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,18 @@
//
// MemeberEditeViewCustomCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ShopUserDatailData.h"
@interface MemeberEditeViewCustomCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *kindLabel;
@property (weak, nonatomic) IBOutlet UILabel *kindDeail;
-(void)initTitles:(NSArray *)titles AtRowIndex:(NSInteger)row userDatailData:(ShopUserDatailData*)user;
@end
@@ -0,0 +1,64 @@
//
// MemeberEditeViewCustomCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "MemeberEditeViewCustomCell.h"
@implementation MemeberEditeViewCustomCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
-(void)initTitles:(NSArray *)titles AtRowIndex:(NSInteger)row userDatailData:(ShopUserDatailData*)user
{
//row 从分区row=1 算起
_kindLabel.text = titles[row-1];
if (row==1) {
if (!user.memberLevel||[user.memberLevel isKindOfClass:[NSNull class]]) {
user.memberLevel = @"1";
}
_kindDeail.text = [NSString stringWithFormat:@"%@级",user.memberLevel];
}else if (row==2){
if (!user.userName ||[user.userName isKindOfClass:[NSNull class]]) {
user.userName = @"设置备注名";
}
_kindDeail.text = user.userName;
}else if (row==3){
if (!user.phoneNumber) {
user.phoneNumber = @"设置会员手机号";
}
_kindDeail.text = user.phoneNumber;
}else if (row==4){
if ([user.province isKindOfClass:[NSNull class]]) {
user.province = @"";
}
if ([user.city isKindOfClass:[NSNull class]]) {
user.city = @"";
}
if ([user.area isKindOfClass:[NSNull class]]) {
user.area = @"";
}
NSString *loaction = [NSString stringWithFormat:@"%@%@%@",user.province,user.city,user.area];
_kindDeail.text = loaction;
}
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="MemeberEditeViewCustomCell" rowHeight="44" id="KGk-i7-Jjw" customClass="MemeberEditeViewCustomCell">
<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="44"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rnB-Hj-Jbb">
<rect key="frame" x="15" y="14" width="64" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="Rk8-HH-Wyn"/>
<constraint firstAttribute="width" constant="64" id="S0h-7p-soZ"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wez-bC-LyH">
<rect key="frame" x="107" y="14" width="205" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="GxK-7e-kbS"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ScB-fK-aFk">
<rect key="frame" x="15" y="43" width="399" height="1"/>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.94901960784313721" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="NC3-ZH-Psk"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstAttribute="trailingMargin" secondItem="wez-bC-LyH" secondAttribute="trailing" id="1dC-kI-TZO"/>
<constraint firstItem="rnB-Hj-Jbb" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="7" id="DVu-Fq-ADL"/>
<constraint firstItem="wez-bC-LyH" firstAttribute="leading" secondItem="rnB-Hj-Jbb" secondAttribute="trailing" constant="28" id="EOd-hc-hML"/>
<constraint firstAttribute="trailing" secondItem="ScB-fK-aFk" secondAttribute="trailing" constant="-94" id="UIw-iV-3AH"/>
<constraint firstItem="ScB-fK-aFk" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="Voj-Ur-QLv"/>
<constraint firstAttribute="bottom" secondItem="ScB-fK-aFk" secondAttribute="bottom" id="Yod-rF-l3A"/>
<constraint firstItem="wez-bC-LyH" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="cki-Fh-nEc"/>
<constraint firstItem="rnB-Hj-Jbb" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="h4v-if-iGW"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="kindDeail" destination="wez-bC-LyH" id="F5D-NU-9QM"/>
<outlet property="kindLabel" destination="rnB-Hj-Jbb" id="6lL-cG-QW4"/>
</connections>
</tableViewCell>
</objects>
</document>
@@ -0,0 +1,21 @@
//
// ShopMemberDetailViewInfoCell.h
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ShopUserDatailData.h"
#import "MemberNanageListData.h"
@interface ShopMemberDetailViewInfoCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *memberuserImg;
@property (weak, nonatomic) IBOutlet UILabel *memberName;
@property (weak, nonatomic) IBOutlet UILabel *lastLogTime;
@property (weak, nonatomic) IBOutlet UILabel *deviceNumber;
@property (weak, nonatomic) IBOutlet UILabel *cameraNumber;
@property (weak, nonatomic) IBOutlet UIButton *chatBtn;
-(void)loadataWith:(MemberNanageListData *)data andUserInfo:(ShopUserDatailData *)user;
@end
@@ -0,0 +1,55 @@
//
// ShopMemberDetailViewInfoCell.m
// Ifish
//
// Created by imac on 17/4/11.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "ShopMemberDetailViewInfoCell.h"
#import "UIImageView+WebCache.h"
@implementation ShopMemberDetailViewInfoCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
_chatBtn.layer.masksToBounds = YES;
_chatBtn.layer.cornerRadius = 5;
_memberuserImg.layer.masksToBounds = YES;
_memberuserImg.layer.cornerRadius = _memberuserImg.frame.size.height/2;
}
-(void)loadataWith:(MemberNanageListData*)data andUserInfo:(ShopUserDatailData *)user{
NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,data.userImg];
[_memberuserImg sd_setImageWithURL:[NSURL URLWithString:str]];
_memberName.text = data.nickName;
_lastLogTime.text = [NSString stringWithFormat:@"最后登录时间%@",data.loginTime];;
NSString *dnumStr = [NSString stringWithFormat:@"%@",user.deviceNum];
if (!user.deviceNum||[user.deviceNum isKindOfClass:[NSNull class]]) {
dnumStr = @"0";
}
NSMutableAttributedString * deviceNumberString = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"水族箱%@个",dnumStr]];
[deviceNumberString addAttribute:NSForegroundColorAttributeName value:RGB(255.0, 199.0, 92.0) range:NSMakeRange(3,dnumStr.length)];
_deviceNumber.attributedText = deviceNumberString;
NSString *cameraStr = [NSString stringWithFormat:@"%@",user.cameraNum];
if (!user.cameraNum||[user.cameraNum isKindOfClass:[NSNull class]]) {
cameraStr = @"0";
}
NSMutableAttributedString * cameraNumberString = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"摄像头%@个",cameraStr]];
[cameraNumberString addAttribute:NSForegroundColorAttributeName value:RGB(255.0, 199.0, 92.0) range:NSMakeRange(3,cameraStr.length)];
_cameraNumber.attributedText = cameraNumberString;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
@@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="ShopMemberDetailViewInfoCell" id="KGk-i7-Jjw" customClass="ShopMemberDetailViewInfoCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="90"/>
<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="90"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="LqL-EC-6gX">
<rect key="frame" x="17" y="15" width="61" height="61"/>
<constraints>
<constraint firstAttribute="width" constant="61" id="gdA-vr-ohl"/>
<constraint firstAttribute="height" constant="61" id="kuo-is-UsB"/>
</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="dbK-nM-sxY">
<rect key="frame" x="86" y="24" width="147" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="a5y-S1-t4F"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<nil key="textColor"/>
<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="Ndq-5j-AIm">
<rect key="frame" x="86" y="44" width="147" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="QHC-85-cyE"/>
<constraint firstAttribute="width" constant="147" id="vwQ-Sz-W6E"/>
</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="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zqD-4l-KO5">
<rect key="frame" x="86" y="61" width="28.5" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="Sw5-Ks-y7z"/>
</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>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YNh-jZ-Oag">
<rect key="frame" x="241" y="18" width="68" height="27"/>
<color key="backgroundColor" red="0.0" green="0.72156862745098038" blue="0.93725490196078431" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="27" id="7OO-Da-ebO"/>
<constraint firstAttribute="width" constant="68" id="VVs-Uf-CmC"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<inset key="imageEdgeInsets" minX="-10" minY="0.0" maxX="0.0" maxY="0.0"/>
<state key="normal" title="聊天" image="live_sharechat_iocn.png"/>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="o7g-Pq-IIg">
<rect key="frame" x="128.5" y="61" width="28.5" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="fmm-M3-MWL"/>
</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>
<constraints>
<constraint firstAttribute="trailingMargin" secondItem="YNh-jZ-Oag" secondAttribute="trailing" constant="3" id="31K-j1-KG5"/>
<constraint firstItem="YNh-jZ-Oag" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="10" id="4hh-WK-OAQ"/>
<constraint firstItem="Ndq-5j-AIm" firstAttribute="leading" secondItem="LqL-EC-6gX" secondAttribute="trailing" constant="8" id="7Rw-V7-xPB"/>
<constraint firstItem="zqD-4l-KO5" firstAttribute="leading" secondItem="LqL-EC-6gX" secondAttribute="trailing" constant="8" id="7ll-Rv-MTP"/>
<constraint firstItem="Ndq-5j-AIm" firstAttribute="top" secondItem="dbK-nM-sxY" secondAttribute="bottom" constant="5" id="B3F-pY-u9Y"/>
<constraint firstItem="o7g-Pq-IIg" firstAttribute="top" secondItem="Ndq-5j-AIm" secondAttribute="bottom" constant="2" id="GI3-zK-rK5"/>
<constraint firstItem="zqD-4l-KO5" firstAttribute="top" secondItem="Ndq-5j-AIm" secondAttribute="bottom" constant="2" id="I7j-P0-be2"/>
<constraint firstItem="dbK-nM-sxY" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="16" id="Oeq-dA-wqt"/>
<constraint firstItem="LqL-EC-6gX" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="UOx-VS-shA"/>
<constraint firstItem="zqD-4l-KO5" firstAttribute="top" secondItem="Ndq-5j-AIm" secondAttribute="bottom" constant="2" id="bmx-5q-fZJ"/>
<constraint firstItem="dbK-nM-sxY" firstAttribute="leading" secondItem="LqL-EC-6gX" secondAttribute="trailing" constant="8" id="das-A1-XNV"/>
<constraint firstItem="YNh-jZ-Oag" firstAttribute="leading" secondItem="dbK-nM-sxY" secondAttribute="trailing" constant="8" id="qHJ-bY-Pmp"/>
<constraint firstItem="o7g-Pq-IIg" firstAttribute="leading" secondItem="zqD-4l-KO5" secondAttribute="trailing" constant="14" id="r5v-4Y-UxO"/>
<constraint firstItem="LqL-EC-6gX" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="9" id="xxn-NZ-y19"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="cameraNumber" destination="o7g-Pq-IIg" id="MDP-st-nWk"/>
<outlet property="chatBtn" destination="YNh-jZ-Oag" id="wWH-k5-tcw"/>
<outlet property="deviceNumber" destination="zqD-4l-KO5" id="Mmb-4E-E0q"/>
<outlet property="lastLogTime" destination="Ndq-5j-AIm" id="hgc-Kp-yAF"/>
<outlet property="memberName" destination="dbK-nM-sxY" id="Dd4-um-nBn"/>
<outlet property="memberuserImg" destination="LqL-EC-6gX" id="wfv-5d-B3N"/>
</connections>
</tableViewCell>
</objects>
<resources>
<image name="live_sharechat_iocn.png" width="11" height="11"/>
</resources>
</document>