OrderDetailHtmlCell.m 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // OrderDetailHtmlCell.m
  3. // RedAnt ERP Mobile
  4. //
  5. // Created by Ray on 12/3/15.
  6. // Copyright © 2015 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import "OrderDetailHtmlCell.h"
  9. @implementation OrderDetailHtmlCell
  10. - (void)awakeFromNib {
  11. // Initialization code
  12. [super awakeFromNib];
  13. [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
  14. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceOrientationDidChange:) name:UIDeviceOrientationDidChangeNotification object:nil];
  15. }
  16. - (void)dealloc
  17. {
  18. [[UIDevice currentDevice] endGeneratingDeviceOrientationNotifications];
  19. [[NSNotificationCenter defaultCenter] removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil];
  20. }
  21. // Handle device orientation changes
  22. - (void)deviceOrientationDidChange: (NSNotification *)notification
  23. {
  24. [self.webview reload];
  25. }
  26. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  27. [super setSelected:selected animated:animated];
  28. // Configure the view for the selected state
  29. }
  30. @end