Commit d2b761d6 authored by Sandy's avatar Sandy

no message

parent 2fad88d4
......@@ -78,7 +78,8 @@
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
self.chooseBlock(@"选择好了商铺");
[self.navigationController popViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
......
......@@ -101,6 +101,12 @@ ON_WILL_APPEAR( signal )
- (void)chooseShopAction {
ChooseShopViewController *chooseVC = [[ChooseShopViewController alloc] init];
chooseVC.chooseBlock = ^(NSString *string){
[self.topView setShopName:string];
};
[self.navigationController pushViewController:chooseVC animated:YES];
}
......
......@@ -12,4 +12,8 @@ typedef void (^tapBlock)(void);
@interface SalesInputTopView : UIView
@property (nonatomic, copy) tapBlock nameTapActionBlock;
@property (nonatomic, copy) tapBlock dateTapActionBlock;
- (void)setShopName:(NSString *)name;
- (void)setDate:(NSString *)date;
@end
......@@ -18,6 +18,15 @@
@implementation SalesInputTopView
- (void)setShopName:(NSString *)name
{
self.labelShopName.text = name;
}
- (void)setDate:(NSString *)date
{
self.labelDate.text = date;
}
- (void)awakeFromNib {
self.viewRedBac.layer.cornerRadius = 7;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment