连接加热器设备,title修复

This commit is contained in:
wbzhan_macbook
2019-08-29 21:59:04 +08:00
parent 685a2b8676
commit b871a24c4e
4 changed files with 17 additions and 17 deletions
@@ -52,8 +52,8 @@ Copy NSString *wifiName;//当前wifi名称
- (void)viewDidLoad {
[super viewDidLoad];
self.title = @"热点连接";
[self addTitleViewWithTitle:@"热点连接"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keybordframeChanged:) name:UIKeyboardDidChangeFrameNotification object:nil];
for (UIImageView *view in self.dashView) {
view.backgroundColor = [UIColor clearColor];
@@ -64,17 +64,17 @@ Copy NSString *wifiName;//当前wifi名称
fiveTapGesture.numberOfTapsRequired = 5;
[self.containerView addGestureRecognizer:fiveTapGesture];
UIButton *back = [UIButton buttonWithType:UIButtonTypeCustom];
back.frame = CGRectMake(0,0,48,44);
[back setImage:[UIImage imageNamed:@"back_btn"] forState:UIControlStateNormal];
// [_bakbutton setBackgroundImage:[UIImage imageNamed:@"back_btn"] forState:UIControlStateNormal];
back.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
[back addTarget: self action: @selector(clickBack) forControlEvents: UIControlEventTouchUpInside];
[back setContentEdgeInsets:UIEdgeInsetsMake(0, 10, 0, -10)];
back.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
UIBarButtonItem * backItem=[[UIBarButtonItem alloc] initWithCustomView:back];
self.navigationItem.leftBarButtonItem=backItem;
// UIButton *back = [UIButton buttonWithType:UIButtonTypeCustom];
// back.frame = CGRectMake(0,0,48,44);
// [back setImage:[UIImage imageNamed:@"back_btn"] forState:UIControlStateNormal];
// // [_bakbutton setBackgroundImage:[UIImage imageNamed:@"back_btn"] forState:UIControlStateNormal];
// back.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
// [back addTarget: self action: @selector(clickBack) forControlEvents: UIControlEventTouchUpInside];
// [back setContentEdgeInsets:UIEdgeInsetsMake(0, 10, 0, -10)];
// back.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
// UIBarButtonItem * backItem=[[UIBarButtonItem alloc] initWithCustomView:back];
//
// self.navigationItem.leftBarButtonItem=backItem;
NSDictionary *wifiDic = [self fetchSSIDInfo];
NSString *wifiName = [wifiDic objectForKey:@"SSID"];