OrderDetailModelCell.m 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. @implementation OrderDetailModelCell
  12. - (void)awakeFromNib {
  13. // Initialization code
  14. }
  15. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  16. [super setSelected:selected animated:animated];
  17. // Configure the view for the selected state
  18. }
  19. - (IBAction)onBundleClick:(UIButton *)sender {
  20. UIViewController* vc=[RAUtils getViewController :sender];
  21. BundleModelViewController * bundleVC =[ vc.storyboard instantiateViewControllerWithIdentifier:@"BundleModelViewController"];
  22. bundleVC.content_data = self.bundle_item;
  23. UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:bundleVC] ;
  24. navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
  25. [vc presentViewController:navi animated:YES completion:^{
  26. // navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
  27. NSLog(@"bundle present.........");
  28. // self.btop = false;
  29. // <#code#>
  30. }];
  31. }
  32. @end