Scanner view for iPhoneX

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent 8c69e00a3f
commit b40d2afc05

@ -82,7 +82,7 @@ NS_ASSUME_NONNULL_BEGIN
footer.backgroundColor = darkGrey; footer.backgroundColor = darkGrey;
[self.view addSubview:footer]; [self.view addSubview:footer];
[footer autoPinWidthToSuperview]; [footer autoPinWidthToSuperview];
[footer autoPinToBottomLayoutGuideOfViewController:self withInset:0]; [footer autoPinEdgeToSuperviewEdge:ALEdgeBottom];
[footer autoPinEdge:ALEdgeTop toEdge:ALEdgeBottom ofView:self.qrScanningController.view]; [footer autoPinEdge:ALEdgeTop toEdge:ALEdgeBottom ofView:self.qrScanningController.view];
UILabel *cameraInstructionLabel = [UILabel new]; UILabel *cameraInstructionLabel = [UILabel new];
@ -96,7 +96,7 @@ NS_ASSUME_NONNULL_BEGIN
[footer addSubview:cameraInstructionLabel]; [footer addSubview:cameraInstructionLabel];
[cameraInstructionLabel autoPinWidthToSuperviewWithMargin:ScaleFromIPhone5To7Plus(16.f, 30.f)]; [cameraInstructionLabel autoPinWidthToSuperviewWithMargin:ScaleFromIPhone5To7Plus(16.f, 30.f)];
CGFloat instructionsVMargin = ScaleFromIPhone5To7Plus(10.f, 20.f); CGFloat instructionsVMargin = ScaleFromIPhone5To7Plus(10.f, 20.f);
[cameraInstructionLabel autoPinEdgeToSuperviewEdge:ALEdgeBottom withInset:instructionsVMargin]; [cameraInstructionLabel autoPinToBottomLayoutGuideOfViewController:self withInset:instructionsVMargin];
[cameraInstructionLabel autoPinEdgeToSuperviewEdge:ALEdgeTop withInset:instructionsVMargin]; [cameraInstructionLabel autoPinEdgeToSuperviewEdge:ALEdgeTop withInset:instructionsVMargin];
} }

Loading…
Cancel
Save