[iOS] update rutaxi icon and link in search categories

This commit is contained in:
Aleksey Belouosv 2018-10-23 18:07:24 +03:00 committed by Roman Kuznetsov
parent 9d30a10099
commit 67185059a3
14 changed files with 38 additions and 6 deletions

View file

@ -2,17 +2,17 @@
"images" : [
{
"idiom" : "universal",
"filename" : "ic_vezet_light.png",
"filename" : "ic_rutaxi_dark.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "ic_vezet_light@2x.png",
"filename" : "ic_rutaxi_dark@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "ic_vezet_light@3x.png",
"filename" : "ic_rutaxi_dark@3x.png",
"scale" : "3x"
}
],

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View file

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "ic_rutaxi_light.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "ic_rutaxi_light@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "ic_rutaxi_light@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 706 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -103,7 +103,7 @@ static NSInteger const kRutaxiIndex = 6;
- (void)cellDidPressAction:(MWMSearchBannerCell *)cell
{
[[UIApplication sharedApplication] openURL:
[NSURL URLWithString:@"https://go.onelink.me/757212956/a81b5d7c"]];
[NSURL URLWithString:@"https://go.onelink.me/2944814706/86db6339"]];
}
- (void)cellDidPressClose:(MWMSearchBannerCell *)cell

View file

@ -7,8 +7,14 @@ protocol SearchBannerCellDelegate: AnyObject {
@objc(MWMSearchBannerCell)
class SearchBannerCell: MWMTableViewCell {
@IBOutlet var taxiImageView: UIImageView!
@objc weak var delegate: SearchBannerCellDelegate?
override func awakeFromNib() {
super.awakeFromNib()
taxiImageView.mwm_name = "ic_rutaxi"
}
@IBAction private func onInstall(_ sender: UIButton) {
delegate?.cellDidPressAction(self)
}

View file

@ -19,7 +19,7 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="751" verticalCompressionResistancePriority="751" image="ic_vezet_light" translatesAutoresizingMaskIntoConstraints="NO" id="a9s-eh-L10" userLabel="Icon">
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="751" verticalCompressionResistancePriority="751" image="ic_rutaxi_light" translatesAutoresizingMaskIntoConstraints="NO" id="a9s-eh-L10" userLabel="Icon">
<rect key="frame" x="16" y="8" width="28" height="28"/>
<constraints>
<constraint firstAttribute="width" constant="28" id="UkL-Ob-9dH"/>
@ -113,11 +113,14 @@
</userDefinedRuntimeAttributes>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="taxiImageView" destination="a9s-eh-L10" id="Lga-SX-Sev"/>
</connections>
<point key="canvasLocation" x="52.799999999999997" y="48.575712143928037"/>
</tableViewCell>
</objects>
<resources>
<image name="ic_ad_close" width="8" height="8"/>
<image name="ic_vezet_light" width="28" height="28"/>
<image name="ic_rutaxi_light" width="40" height="40"/>
</resources>
</document>