|
|
@@ -29,6 +29,7 @@
|
|
|
@property (nonatomic,strong) SortItemViewController *sortItemController;
|
|
|
@property (nonatomic,assign) int sortIndex;
|
|
|
@property (nonatomic,strong) SortButton *sortButton;
|
|
|
+@property (nonatomic,strong) UILabel *qtyLabel;
|
|
|
|
|
|
@end
|
|
|
|
|
|
@@ -701,11 +702,8 @@
|
|
|
[myView addSubview:titlelabel];
|
|
|
|
|
|
|
|
|
- UILabel *qtyLabel = [[UILabel alloc] initWithFrame:CGRectMake(tableView.bounds.size.width - 200, 5.5, 40, 22)];
|
|
|
- qtyLabel.text = @"QTY";
|
|
|
- qtyLabel.textAlignment = NSTextAlignmentCenter;
|
|
|
- qtyLabel.autoresizingMask=UIViewAutoresizingFlexibleWidth;
|
|
|
- [myView addSubview:qtyLabel];
|
|
|
+
|
|
|
+ [myView addSubview:self.qtyLabel];
|
|
|
|
|
|
return myView;
|
|
|
}
|
|
|
@@ -1194,6 +1192,16 @@ commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:
|
|
|
|
|
|
}
|
|
|
|
|
|
+- (UILabel *)qtyLabel {
|
|
|
+ if (!_qtyLabel) {
|
|
|
+ _qtyLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.itemListTable.bounds.size.width - 200, 5.5, 40, 22)];
|
|
|
+ _qtyLabel.text = @"QTY";
|
|
|
+ _qtyLabel.textAlignment = NSTextAlignmentCenter;
|
|
|
+ _qtyLabel.autoresizingMask=UIViewAutoresizingFlexibleWidth;
|
|
|
+ }
|
|
|
+ return _qtyLabel;
|
|
|
+}
|
|
|
+
|
|
|
#pragma mark - rotation
|
|
|
|
|
|
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
|
|
|
@@ -1207,6 +1215,8 @@ commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:
|
|
|
|
|
|
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
|
|
|
self.sortItemController.view.frame = self.view.bounds;
|
|
|
+ self.qtyLabel.frame = CGRectMake(self.itemListTable.bounds.size.width - 200, 5.5, 40, 22);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@end
|