You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

78 lines
2.0 KiB

//
// ChoosePACell.m
// watch
//
// Created by WeiChaoZheng on 2017/10/28.
// Copyright © 2017年 xTT. All rights reserved.
//
#import "ContactNEWPACell.h"
#import "Contacts.h"
@implementation ContactNEWPACell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
[self.selectImageView setHidden:YES];
self.selectionStyle = 0;
self.headImageViewLeftNSLC.constant = 10;
}
-(void)setSelectInImageShow:(BOOL)isShow{
NSString *imageName ;
if(isShow){
imageName = @"选中";
}else{
imageName = @"CellGraySelected";
}
self.selectImageView.image = [UIImage imageNamed:imageName];
}
- (void)setDelectModel:(BOOL)isDelect{
if(isDelect){
//删除模式
if(self.headImageViewLeftNSLC.constant != 44){
self.headImageViewLeftNSLC.constant = 44;
// [UIView animateWithDuration:0.3 animations:^{
// [self.contentView layoutIfNeeded];
// } completion:^(BOOL finished) {
//
// }];
}
[self.selectImageView setHidden:NO];
}else{
if(self.headImageViewLeftNSLC.constant != 10){
self.headImageViewLeftNSLC.constant = 10;
// [UIView animateWithDuration:0.3 animations:^{
// [self.contentView layoutIfNeeded];
// } completion:^(BOOL finished) {
//
// }];
}
[self.selectImageView setHidden:YES];
}
}
-(void)isCanEditStatus:(BOOL)status{
self.headImageViewLeftNSLC.constant = 10;
if(status){
[self.canEditIcon setHidden:NO];
// self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
// self.characterImageRightNSLC.constant = 0;
}else{
[self.canEditIcon setHidden:YES];
// self.accessoryType = UITableViewCellAccessoryNone;
// self.characterImageRightNSLC.constant = 33;
}
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end