//
// OrderDetailHtmlCell.m
// RedAnt ERP Mobile
//
// Created by Ray on 12/3/15.
// Copyright © 2015 United Software Applications, Inc. All rights reserved.
//
#import "OrderDetailHtmlCell.h"
@implementation OrderDetailHtmlCell
- (void)awakeFromNib {
// Initialization code
[super awakeFromNib];
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceOrientationDidChange:) name:UIDeviceOrientationDidChangeNotification object:nil];
self.wkwebview.scrollView.scrollEnabled = NO;
// self.wkwebview.scrollView.alwaysBounceVertical = NO;
// self.wkwebview.scrollView.showsHorizontalScrollIndicator = NO;
// self.wkwebview.scrollView.showsVerticalScrollIndicator=NO;
// self.wkwebview.scrollView.bouncesZoom = NO;
}
- (void)dealloc
{
[[UIDevice currentDevice] endGeneratingDeviceOrientationNotifications];
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil];
}
// Handle device orientation changes
- (void)deviceOrientationDidChange: (NSNotification *)notification
{
// 如果显示不正常,可以尝试开放以下代码;
// if(self.html==nil)
// {
// [self.wkwebview reload];
// }
// else
// {
// [self.wkwebview loadHTMLString:self.html baseURL:nil];
// }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end