forked from liuchaogenius/DianjiaApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
1,086 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
YHB_Prj/YHB_Prj/shangpinguanli/EditSPVC/SPKCTableViewCell.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// SPKCTableViewCell.h | ||
// YHB_Prj | ||
// | ||
// Created by Johnny's on 15/9/14. | ||
// Copyright (c) 2015年 striveliu. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface SPKCTableViewCell : UITableViewCell | ||
@property(nonatomic,strong) UITextField *countTf; | ||
+ (CGFloat)heightForCell; | ||
- (void)setCell:(NSString *)aStr; | ||
- (instancetype)init; | ||
@end |
66 changes: 66 additions & 0 deletions
66
YHB_Prj/YHB_Prj/shangpinguanli/EditSPVC/SPKCTableViewCell.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// | ||
// SPKCTableViewCell.m | ||
// YHB_Prj | ||
// | ||
// Created by Johnny's on 15/9/14. | ||
// Copyright (c) 2015年 striveliu. All rights reserved. | ||
// | ||
|
||
#import "SPKCTableViewCell.h" | ||
|
||
@interface SPKCTableViewCell() | ||
|
||
@property(nonatomic,strong) UILabel *mendianLabel; | ||
@end | ||
|
||
@implementation SPKCTableViewCell | ||
|
||
- (void)awakeFromNib { | ||
// Initialization code | ||
} | ||
|
||
+(CGFloat)heightForCell | ||
{ | ||
return 50; | ||
} | ||
|
||
- (instancetype)init | ||
{ | ||
if (self = [super init]) | ||
{ | ||
[self createView]; | ||
self.selectionStyle = UITableViewCellSelectionStyleNone; | ||
} | ||
return self; | ||
} | ||
|
||
- (void)createView | ||
{ | ||
_mendianLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, kMainScreenWidth, 25)]; | ||
_mendianLabel.font = kFont12; | ||
_mendianLabel.textAlignment = NSTextAlignmentCenter; | ||
[self addSubview:_mendianLabel]; | ||
|
||
_countTf = [[UITextField alloc] initWithFrame:CGRectMake(20, _mendianLabel.bottom, kMainScreenWidth-40, 25)]; | ||
_countTf.font = kFont12; | ||
_countTf.placeholder = @"0"; | ||
_countTf.keyboardType = UIKeyboardTypeNumberPad; | ||
[self addSubview:_countTf]; | ||
|
||
// UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(0, 49.3, kMainScreenWidth, 0.5)]; | ||
// lineView.backgroundColor = [UIColor blackColor]; | ||
// [self addSubview:lineView]; | ||
} | ||
|
||
- (void)setCell:(NSString *)aStr | ||
{ | ||
_mendianLabel.text = aStr; | ||
} | ||
|
||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated { | ||
[super setSelected:selected animated:animated]; | ||
|
||
// Configure the view for the selected state | ||
} | ||
|
||
@end |
15 changes: 15 additions & 0 deletions
15
YHB_Prj/YHB_Prj/shangpinguanli/EditSPVC/SPKCViewController.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// SPKCViewController.h | ||
// YHB_Prj | ||
// | ||
// Created by Johnny's on 15/9/14. | ||
// Copyright (c) 2015年 striveliu. All rights reserved. | ||
// | ||
|
||
#import "BaseViewController.h" | ||
|
||
@interface SPKCViewController : BaseViewController | ||
|
||
- (instancetype)initWithBlock:(void(^)(int))aBlock; | ||
|
||
@end |
Oops, something went wrong.