|
//
// fontSizeSliderController.m
// ThePaperHD
//
// Created by scar1900 on 15/3/13.
// Copyright (c) 2015年 scar1900. All rights reserved.
//
#import "fontSizeSliderController.h"
#import "fontSizeSlideCell.h"
@interface fontSizeSliderController ()<fontSizeSelectDelegate>
@property(nonatomic, strong)fontSizeSlideCell *fontSizeSelectView;
@end
@implementation fontSizeSliderController
@synthesize delegate;
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.view.backgroundColor = [UIColor whiteColor];
[self.view addSubview:self.fontSizeSelectView];
}
- (fontSizeSlideCell*)fontSizeSelectView {
if (!_fontSizeSelectView) {
_fontSizeSelectView = [[fontSizeSlideCell alloc]initWithFrame:CGRectMake(0, 0, 600/2, 60)];
_fontSizeSelectView.delegate = self;
}
return _fontSizeSelectView;
}
- (void)didFinishSelectFont {
if ([self.delegate respondsToSelector:@selector(contentFontSizeHasChange)]) {
[self.delegate contentFontSizeHasChange];
}
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
|