| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- //
- // JPIMMore.m
- // JPush IM
- //
- // Created by Apple on 14/12/30.
- // Copyright (c) 2014年 Apple. All rights reserved.
- //
- #import "JCHATMoreView.h"
- #import "JChatConstants.h"
- #import "ViewUtil.h"
- @implementation JCHATMoreView
- - (void)drawRect:(CGRect)rect {
-
- }
- - (IBAction)photoBtnClick:(id)sender {
-
- if (self.delegate &&[self.delegate respondsToSelector:@selector(photoClick)]) {
- [self.delegate photoClick];
- }
- }
- - (IBAction)cameraBtnClick:(id)sender {
- if (self.delegate &&[self.delegate respondsToSelector:@selector(cameraClick)]) {
- [self.delegate cameraClick];
- }
- }
- - (IBAction)clickVoiceInputBtn:(UIButton *)sender {
- if (self.delegate &&[self.delegate respondsToSelector:@selector(voiceInputClick)]) {
- [self.delegate voiceInputClick];
- }
-
- }
- - (IBAction)clickLoactionBtn:(UIButton *)sender {
- if (self.delegate &&[self.delegate respondsToSelector:@selector(locationClick)]) {
- [self.delegate locationClick];
- }
-
- }
- @end
- @implementation JCHATMoreViewContainer
- - (id)initWithCoder:(NSCoder *)aDecoder {
- self = [super initWithCoder:aDecoder];
- if (self) {
- }
- return self;
- }
- - (void)awakeFromNib {
- [super awakeFromNib];
- self.frame = CGRectMake(0, 0, _window_width, kMoreHeight);
- self.backgroundColor = Normal_Color;
- _moreView = NIB(JCHATMoreView);
-
- _moreView.frame =CGRectMake(0, 0, _window_width, kMoreHeight);
- _moreView.backgroundColor = Normal_Color;
-
- [_moreView.photoBtn setTitle:YZMsg(@"图片") forState:0];
- [_moreView.cameraBtn setTitle:YZMsg(@"相机-sm") forState:0];
- [_moreView.voiceInputBtn setTitle:YZMsg(@"语音") forState:0];
- [_moreView.locationBtn setTitle:YZMsg(@"位置") forState:0];
-
- _moreView.photoBtn = [PublicObj setUpImgDownText:_moreView.photoBtn space:15];
- _moreView.cameraBtn = [PublicObj setUpImgDownText:_moreView.cameraBtn space:15];
- _moreView.voiceInputBtn = [PublicObj setUpImgDownText:_moreView.voiceInputBtn space:15];
- _moreView.locationBtn = [PublicObj setUpImgDownText:_moreView.locationBtn space:15];
-
- // [_toolbar drawRect:_toolbar.frame];
-
- // _toolbar.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
- [self addSubview:_moreView];
- }
- @end
|