连接加热器设备,title修复
This commit is contained in:
parent
685a2b8676
commit
b871a24c4e
|
|
@ -52,8 +52,8 @@ Copy NSString *wifiName;//当前wifi名称
|
||||||
|
|
||||||
- (void)viewDidLoad {
|
- (void)viewDidLoad {
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
self.title = @"热点连接";
|
[self addTitleViewWithTitle:@"热点连接"];
|
||||||
|
|
||||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keybordframeChanged:) name:UIKeyboardDidChangeFrameNotification object:nil];
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keybordframeChanged:) name:UIKeyboardDidChangeFrameNotification object:nil];
|
||||||
for (UIImageView *view in self.dashView) {
|
for (UIImageView *view in self.dashView) {
|
||||||
view.backgroundColor = [UIColor clearColor];
|
view.backgroundColor = [UIColor clearColor];
|
||||||
|
|
@ -64,17 +64,17 @@ Copy NSString *wifiName;//当前wifi名称
|
||||||
fiveTapGesture.numberOfTapsRequired = 5;
|
fiveTapGesture.numberOfTapsRequired = 5;
|
||||||
[self.containerView addGestureRecognizer:fiveTapGesture];
|
[self.containerView addGestureRecognizer:fiveTapGesture];
|
||||||
|
|
||||||
UIButton *back = [UIButton buttonWithType:UIButtonTypeCustom];
|
// UIButton *back = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||||
back.frame = CGRectMake(0,0,48,44);
|
// back.frame = CGRectMake(0,0,48,44);
|
||||||
[back setImage:[UIImage imageNamed:@"back_btn"] forState:UIControlStateNormal];
|
// [back setImage:[UIImage imageNamed:@"back_btn"] forState:UIControlStateNormal];
|
||||||
// [_bakbutton setBackgroundImage:[UIImage imageNamed:@"back_btn"] forState:UIControlStateNormal];
|
// // [_bakbutton setBackgroundImage:[UIImage imageNamed:@"back_btn"] forState:UIControlStateNormal];
|
||||||
back.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
|
// back.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
|
||||||
[back addTarget: self action: @selector(clickBack) forControlEvents: UIControlEventTouchUpInside];
|
// [back addTarget: self action: @selector(clickBack) forControlEvents: UIControlEventTouchUpInside];
|
||||||
[back setContentEdgeInsets:UIEdgeInsetsMake(0, 10, 0, -10)];
|
// [back setContentEdgeInsets:UIEdgeInsetsMake(0, 10, 0, -10)];
|
||||||
back.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
|
// back.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
|
||||||
UIBarButtonItem * backItem=[[UIBarButtonItem alloc] initWithCustomView:back];
|
// UIBarButtonItem * backItem=[[UIBarButtonItem alloc] initWithCustomView:back];
|
||||||
|
//
|
||||||
self.navigationItem.leftBarButtonItem=backItem;
|
// self.navigationItem.leftBarButtonItem=backItem;
|
||||||
|
|
||||||
NSDictionary *wifiDic = [self fetchSSIDInfo];
|
NSDictionary *wifiDic = [self fetchSSIDInfo];
|
||||||
NSString *wifiName = [wifiDic objectForKey:@"SSID"];
|
NSString *wifiName = [wifiDic objectForKey:@"SSID"];
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1Km-pH-09L">
|
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1Km-pH-09L">
|
||||||
<rect key="frame" x="0.0" y="35" width="375" height="251"/>
|
<rect key="frame" x="0.0" y="0.0" width="375" height="251"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="YQa-dk-iMD">
|
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="YQa-dk-iMD">
|
||||||
<rect key="frame" x="21" y="20" width="16" height="16"/>
|
<rect key="frame" x="21" y="20" width="16" height="16"/>
|
||||||
|
|
@ -156,7 +156,7 @@
|
||||||
</constraints>
|
</constraints>
|
||||||
</view>
|
</view>
|
||||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mTK-j3-V77">
|
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mTK-j3-V77">
|
||||||
<rect key="frame" x="36" y="304" width="303" height="30"/>
|
<rect key="frame" x="36" y="269" width="303" height="30"/>
|
||||||
<color key="backgroundColor" red="0.082352941176470587" green="0.66274509803921566" blue="0.92156862745098034" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
<color key="backgroundColor" red="0.082352941176470587" green="0.66274509803921566" blue="0.92156862745098034" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="height" constant="30" id="8Ra-AW-7XB"/>
|
<constraint firstAttribute="height" constant="30" id="8Ra-AW-7XB"/>
|
||||||
|
|
@ -175,7 +175,7 @@
|
||||||
</button>
|
</button>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstItem="1Km-pH-09L" firstAttribute="top" secondItem="rVr-h5-uWd" secondAttribute="top" constant="35" id="3jw-tR-fsS"/>
|
<constraint firstItem="1Km-pH-09L" firstAttribute="top" secondItem="rVr-h5-uWd" secondAttribute="top" id="3jw-tR-fsS"/>
|
||||||
<constraint firstItem="mTK-j3-V77" firstAttribute="centerX" secondItem="rVr-h5-uWd" secondAttribute="centerX" id="5wV-9b-X56"/>
|
<constraint firstItem="mTK-j3-V77" firstAttribute="centerX" secondItem="rVr-h5-uWd" secondAttribute="centerX" id="5wV-9b-X56"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="mTK-j3-V77" secondAttribute="trailing" constant="36" id="H8Z-fV-gfn"/>
|
<constraint firstAttribute="trailing" secondItem="mTK-j3-V77" secondAttribute="trailing" constant="36" id="H8Z-fV-gfn"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="1Km-pH-09L" secondAttribute="trailing" id="O9f-Uo-1eB"/>
|
<constraint firstAttribute="trailing" secondItem="1Km-pH-09L" secondAttribute="trailing" id="O9f-Uo-1eB"/>
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
- (void)viewDidLoad {
|
- (void)viewDidLoad {
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
self.title = @"ifish7热点连接";
|
[self addTitleViewWithTitle:@"连接说明"];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue