新版本

This commit is contained in:
roy
2019-03-12 09:26:46 +08:00
parent cbbfcb098a
commit c08d198e11
431 changed files with 19432 additions and 9136 deletions
@@ -7,6 +7,21 @@
//
#import "IfishHistoryView.h"
#import "IfishChatView.h"
#import "IfishHistroyVo.h"
#import "PNChart.h"
#import "SVProgressHUD.h"
@interface IfishHistoryView()
@property (strong, nonatomic)IfishChatView *chartView;
@property (weak, nonatomic) IBOutlet IfishChatView *chartHolder;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *chartHeight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *chartWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *lableHeight;
@property (weak, nonatomic) IBOutlet UILabel *curDatetitle;
@property(nonatomic,strong)NSMutableArray*line1;
@end
@implementation IfishHistoryView
@@ -17,8 +32,44 @@
// Drawing code
}
*/
-(IfishChatView *)chartView{
if (_chartView==nil) {
_chartView=[[IfishChatView alloc]init];
_chartView.frame=self.chartHolder.bounds;
_chartView.backgroundColor=[UIColor clearColor];
[self.chartHolder addSubview:_chartView];
}
return _chartView;
}
-(void)setDatas:(NSArray *)datas{
_datas=datas;
if (datas.count<1) {
// [SVProgressHUD showInfoWithStatus:@"暂无数据"];
return;
}
if (self.chartView) {
[self.chartView removeFromSuperview];
_chartView=nil;
}
self.chartView.datas=datas;
self.curDatetitle.text=self.curdateStr;
// [self initLineChart];
}
- (IBAction)clickBg:(id)sender {
self.hidden=YES;
}
- (IBAction)clickBottomBar:(UIButton*)sender {
[self.myDeleget clickBottomBarWithIdx:sender.tag];
}
@end