OrderDetailModelCell.m 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // OrderDetailModelCell.m
  3. // RedAnt ERP Mobile
  4. //
  5. // Created by Ray on 8/28/15.
  6. // Copyright (c) 2015 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import "OrderDetailModelCell.h"
  9. #import "RAUtils.h"
  10. #import "BundleModelViewController.h"
  11. #import "const.h"
  12. @implementation OrderDetailModelCell
  13. - (void)awakeFromNib {
  14. // Initialization code
  15. }
  16. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  17. [super setSelected:selected animated:animated];
  18. // Configure the view for the selected state
  19. }
  20. - (IBAction)onBundleClick:(UIButton *)sender {
  21. UIViewController* vc=[RAUtils getViewController :sender];
  22. BundleModelViewController * bundleVC =[ vc.storyboard instantiateViewControllerWithIdentifier:@"BundleModelViewController"];
  23. bundleVC.content_data = self.bundle_item;
  24. UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:bundleVC] ;
  25. navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
  26. [vc presentViewController:navi animated:YES completion:^{
  27. // navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
  28. DebugLog(@"bundle present.........");
  29. // self.btop = false;
  30. // <#code#>
  31. }];
  32. }
  33. @end