Commit 886b84be authored by Sandy's avatar Sandy

界面修改

parent 4543bc8c
......@@ -21,8 +21,8 @@
[super viewDidLoad];
self.view.backgroundColor = [UIColor whiteColor];
[self setUpNavigationBar];
[self setUpTopView];
[self setUpTableView];
[self setUpTopView];
// Do any additional setup after loading the view.
}
......@@ -32,12 +32,13 @@
ON_WILL_APPEAR( signal )
{
[[VankeAppBoard_iPhone sharedInstance] hideMenu];
}
- (void)setUpTableView {
self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 364, SCREEN_WIDTH, SCREEN_HEIGHT - 364) style:UITableViewStylePlain];
self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT) style:UITableViewStylePlain];
self.tableView.contentInset = UIEdgeInsetsMake(364, 0, 0, 0);
self.tableView.delegate = self;
self.tableView.dataSource = self;
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
......@@ -71,8 +72,8 @@ ON_WILL_APPEAR( signal )
- (void)setUpTopView {
SalesInputTopView *topView = [self viewWithNibName:@"SalesInputTopView"];
topView.frame = CGRectMake(0, 64, 0, 300);
[self.view addSubview:topView];
topView.frame = CGRectMake(0, -300, SCREEN_WIDTH, 300);
[self.tableView addSubview:topView];
}
- (id)viewWithNibName:(NSString *)viewName {
......
......@@ -27,7 +27,7 @@
<constraint firstAttribute="height" constant="45" id="vCb-q8-qdd"/>
</constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<textInputTraits key="textInputTraits"/>
</textField>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="IOd-nI-Sgk">
......@@ -36,7 +36,7 @@
<constraint firstAttribute="height" constant="45" id="Tti-cq-XrO"/>
</constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<textInputTraits key="textInputTraits"/>
</textField>
</subviews>
......
......@@ -28,7 +28,7 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="星巴克【A01-01】" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dRE-Ph-BBH">
<rect key="frame" x="151" y="31" width="191" height="21"/>
<rect key="frame" x="129" y="31" width="213" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
......@@ -41,7 +41,7 @@
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2016-3-28" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bGh-xS-xLq">
<rect key="frame" x="151" y="84" width="191" height="21"/>
<rect key="frame" x="129" y="84" width="213" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
......@@ -82,7 +82,7 @@
<constraint firstItem="stJ-qB-AhQ" firstAttribute="centerY" secondItem="dRE-Ph-BBH" secondAttribute="centerY" id="Nlr-iN-hXh"/>
<constraint firstItem="dRE-Ph-BBH" firstAttribute="centerY" secondItem="dB4-mG-z77" secondAttribute="centerY" id="Nx9-24-pxo"/>
<constraint firstItem="dRE-Ph-BBH" firstAttribute="centerY" secondItem="ilW-3S-WXQ" secondAttribute="centerY" id="OIS-ei-9Mh"/>
<constraint firstItem="dRE-Ph-BBH" firstAttribute="leading" secondItem="ilW-3S-WXQ" secondAttribute="trailing" constant="72" id="Sne-cr-Yhv"/>
<constraint firstItem="dRE-Ph-BBH" firstAttribute="leading" secondItem="ilW-3S-WXQ" secondAttribute="trailing" constant="50" id="Sne-cr-Yhv"/>
<constraint firstItem="bGh-xS-xLq" firstAttribute="leading" secondItem="dRE-Ph-BBH" secondAttribute="leading" id="Ubn-UP-A5o"/>
<constraint firstItem="KyU-0A-D7m" firstAttribute="top" secondItem="ilW-3S-WXQ" secondAttribute="bottom" constant="17" id="b0W-Du-na6"/>
<constraint firstAttribute="trailing" secondItem="dB4-mG-z77" secondAttribute="trailing" constant="10" id="dh9-wa-yXK"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment