1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //
- // applyCell.m
- // jiaPei
- //
- // Created by apple on 16/1/22.
- // Copyright © 2016年 JCZ. All rights reserved.
- //
- #import "applyCell.h"
- @implementation applyCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- }
- - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
- self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
- if (self)
- {
- _titLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, 90, self.contentView.height)];
- _titLabel.textAlignment = NSTextAlignmentLeft;
- _titLabel.font = [UIFont scaleSize:Font14];
- _titLabel.textColor = KContentTextColor;
- [self.contentView addSubview:_titLabel];
-
- _detailField = [[UITextField alloc] initWithFrame:CGRectMake(120, 0, kSize.width - 130, self.contentView.height)];
- _detailField.textAlignment = NSTextAlignmentRight;
- _detailField.returnKeyType = UIReturnKeyDone;
- _detailField.font = [UIFont scaleSize:Font14];
-
-
- _rightImg = [[UIImageView alloc] initWithFrame:CGRectMake(kScreenWidth - self.contentView.height - 10, 4, self.contentView.height - 8, self.contentView.height - 8)];
- _rightImg.layer.cornerRadius = (self.contentView.height - 8) / 2.0;
- _rightImg.clipsToBounds = NO;
- _rightImg.image = [UIImage imageNamed:@"NOImg"];
- [self.contentView addSubview:_detailField];
- }
- return self;
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|