|
@@ -1460,28 +1460,29 @@
|
|
|
UILabel *solabel = [[UILabel alloc] initWithFrame:CGRectMake(130, 5.5, 90, 22)];
|
|
UILabel *solabel = [[UILabel alloc] initWithFrame:CGRectMake(130, 5.5, 90, 22)];
|
|
|
solabel.textColor=UIColorFromRGB(color);
|
|
solabel.textColor=UIColorFromRGB(color);
|
|
|
solabel.backgroundColor = [UIColor clearColor];
|
|
solabel.backgroundColor = [UIColor clearColor];
|
|
|
|
|
+ solabel.autoresizingMask=UIViewAutoresizingFlexibleRightMargin;
|
|
|
solabel.text=NSLocalizedString(@"Description", nil);
|
|
solabel.text=NSLocalizedString(@"Description", nil);
|
|
|
[solabel sizeToFit];
|
|
[solabel sizeToFit];
|
|
|
[myView addSubview:solabel];
|
|
[myView addSubview:solabel];
|
|
|
-
|
|
|
|
|
|
|
+ CGFloat x = tableView.bounds.size.width - (768 - 320);
|
|
|
UILabel *contactlabel = [[UILabel alloc] initWithFrame:CGRectMake(320, 5.5, 90, 22)];
|
|
UILabel *contactlabel = [[UILabel alloc] initWithFrame:CGRectMake(320, 5.5, 90, 22)];
|
|
|
contactlabel.textColor=UIColorFromRGB(color);
|
|
contactlabel.textColor=UIColorFromRGB(color);
|
|
|
- contactlabel.autoresizingMask=UIViewAutoresizingFlexibleLeftMargin;
|
|
|
|
|
|
|
+ contactlabel.autoresizingMask=UIViewAutoresizingFlexibleRightMargin;
|
|
|
contactlabel.backgroundColor = [UIColor clearColor];
|
|
contactlabel.backgroundColor = [UIColor clearColor];
|
|
|
contactlabel.text=NSLocalizedString(@"Unit price", nil);
|
|
contactlabel.text=NSLocalizedString(@"Unit price", nil);
|
|
|
[contactlabel sizeToFit];
|
|
[contactlabel sizeToFit];
|
|
|
[myView addSubview:contactlabel];
|
|
[myView addSubview:contactlabel];
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ x = tableView.bounds.size.width - (768 - 470);
|
|
|
UILabel *modellabel = [[UILabel alloc] initWithFrame:CGRectMake(470, 5.5, 90, 22)];
|
|
UILabel *modellabel = [[UILabel alloc] initWithFrame:CGRectMake(470, 5.5, 90, 22)];
|
|
|
modellabel.textColor=UIColorFromRGB(color);
|
|
modellabel.textColor=UIColorFromRGB(color);
|
|
|
- modellabel.autoresizingMask=UIViewAutoresizingFlexibleLeftMargin;
|
|
|
|
|
|
|
+ modellabel.autoresizingMask=UIViewAutoresizingFlexibleRightMargin;
|
|
|
modellabel.backgroundColor = [UIColor clearColor];
|
|
modellabel.backgroundColor = [UIColor clearColor];
|
|
|
modellabel.text=NSLocalizedString(@"Discount/QTY", nil);
|
|
modellabel.text=NSLocalizedString(@"Discount/QTY", nil);
|
|
|
[modellabel sizeToFit];
|
|
[modellabel sizeToFit];
|
|
|
[myView addSubview:modellabel];
|
|
[myView addSubview:modellabel];
|
|
|
-
|
|
|
|
|
- UILabel *pricelabel = [[UILabel alloc] initWithFrame:CGRectMake(640, 5.5, 90, 22)];
|
|
|
|
|
|
|
+ x = tableView.bounds.size.width - (768 - 640);
|
|
|
|
|
+ UILabel *pricelabel = [[UILabel alloc] initWithFrame:CGRectMake(x, 5.5, 90, 22)];
|
|
|
pricelabel.textColor=UIColorFromRGB(color);
|
|
pricelabel.textColor=UIColorFromRGB(color);
|
|
|
pricelabel.autoresizingMask=UIViewAutoresizingFlexibleLeftMargin;
|
|
pricelabel.autoresizingMask=UIViewAutoresizingFlexibleLeftMargin;
|
|
|
pricelabel.backgroundColor = [UIColor clearColor];
|
|
pricelabel.backgroundColor = [UIColor clearColor];
|
|
@@ -2675,7 +2676,7 @@ commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:
|
|
|
- (SortButton *)sortButton {
|
|
- (SortButton *)sortButton {
|
|
|
if (!_sortButton) {
|
|
if (!_sortButton) {
|
|
|
_sortButton = [SortButton sortButtonWithHeight:40];
|
|
_sortButton = [SortButton sortButtonWithHeight:40];
|
|
|
-
|
|
|
|
|
|
|
+ _sortButton.autoresizingMask=UIViewAutoresizingFlexibleRightMargin;
|
|
|
[_sortButton addTarget:self action:@selector(cartSortButtonClicked:) forControlEvents:UIControlEventTouchUpInside];
|
|
[_sortButton addTarget:self action:@selector(cartSortButtonClicked:) forControlEvents:UIControlEventTouchUpInside];
|
|
|
}
|
|
}
|
|
|
return _sortButton;
|
|
return _sortButton;
|