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.

85 lines
2.3 KiB

//
// ChoosePACell.m
// watch
//
// Created by WeiChaoZheng on 2017/10/28.
// Copyright © 2017xTT. 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.nameLabel.font = FontBold_(16);
self.phoneLabel.textColor = KKGrey163;
self.headImageViewLeftNSLC.constant = 10;
self.headImageView.layer.cornerRadius = self.headImageView.size.height/2;
self.headImageView.layer.masksToBounds = YES;
}
-(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 != 60){
self.headImageViewLeftNSLC.constant = 60;
// [UIView animateWithDuration:0.3 animations:^{
// [self.contentView layoutIfNeeded];
// } completion:^(BOOL finished) {
//
// }];
}
[self.selectImageView setHidden:NO];
}
else
{
if(self.headImageViewLeftNSLC.constant != 16){
self.headImageViewLeftNSLC.constant = 16;
// [UIView animateWithDuration:0.3 animations:^{
// [self.contentView layoutIfNeeded];
// } completion:^(BOOL finished) {
//
// }];
}
[self.selectImageView setHidden:YES];
}
}
-(void)isCanEditStatus:(BOOL)status{
self.headImageViewLeftNSLC.constant = 16;
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