forked from organicmaps/organicmaps
[ios] Default drop down.
This commit is contained in:
parent
a5eb92b8eb
commit
32578e3f7d
3 changed files with 10 additions and 9 deletions
|
@ -1,8 +1,8 @@
|
|||
// Default drop down which dismiss automaticaly after 3 seconds.
|
||||
@interface MWMDropDown : NSObject
|
||||
|
||||
- (instancetype)initWithSuperview:(UIView *)view;
|
||||
- (void)showWithMessage:(NSString *)message;
|
||||
- (void)dismiss;
|
||||
|
||||
- (instancetype)init __attribute__((unavailable("call -initWithSuperview: instead!")));
|
||||
+ (instancetype)new __attribute__((unavailable("call -initWithSuperview: instead!")));
|
||||
|
|
|
@ -89,6 +89,11 @@ CGFloat const kTopOffset = 25.;
|
|||
self.dropDown.alpha = 1.;
|
||||
self.dropDown.origin = {};
|
||||
}];
|
||||
|
||||
[self performAfterDelay:3 block:^
|
||||
{
|
||||
[self dismiss];
|
||||
}];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9531" systemVersion="15A284" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9529"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MWMDropDown">
|
||||
|
@ -19,20 +19,16 @@
|
|||
<rect key="frame" x="16" y="25" width="288" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="textColor" white="1" alpha="0.69999999999999996" colorSpace="calibratedWhite"/>
|
||||
<nil key="highlightedColor"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="colorName" value="whitePrimaryText"/>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular17"/>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="calibratedRGB"/>
|
||||
<nil key="simulatedStatusBarMetrics"/>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackStatusBarBackground"/>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<connections>
|
||||
<outlet property="message" destination="vvR-dC-0Hv" id="YVS-gC-WLP"/>
|
||||
</connections>
|
||||
|
|
Loading…
Add table
Reference in a new issue