// // TCMessageManagerFaceView.m // QimoQM // // Created by TuChuan on 15/5/13. // Copyright (c) 2015年 七陌科技. All rights reserved. // #import "TCMessageManagerFaceView.h" #import "TCExpressionSectionBar.h" #define FaceSectionBarHeight 46 // 表情下面控件 #define FacePageControlHeight 30 // 表情pagecontrol #define Pages 2 @implementation TCMessageManagerFaceView { UIPageControl *pageControl; } - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self setup]; } return self; } - (void)setup{ self.backgroundColor = [UIColor whiteColor]; UIScrollView *scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0.0f, 5.0f, CGRectGetWidth(self.bounds), CGRectGetHeight(self.bounds) - RQ_APPLICATION_SAFEAREA_BOTTOM_HEIGHT - FacePageControlHeight - FaceSectionBarHeight)]; scrollView.delegate = self; [self addSubview:scrollView]; [scrollView setPagingEnabled:YES]; [scrollView setShowsHorizontalScrollIndicator:NO]; [scrollView setContentSize:CGSizeMake(CGRectGetWidth(scrollView.frame)*Pages,CGRectGetHeight(scrollView.frame))]; for (int i= 0;i