forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use navbar instead of tab bar controller. (project-chip#941)
* Use navbar * Restyled by clang-format * Restyled by shellharden * Restyled by shfmt. Co-authored-by: Bhaskar Sarma <bhaskars@apple.com> Co-authored-by: Restyled.io <commits@restyled.io>
- Loading branch information
1 parent
362af3f
commit 362a8e8
Showing
10 changed files
with
351 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
src/darwin/CHIPTool/CHIPTool/OnOffCluster/OnOffViewController.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// OnOffViewController.h | ||
// CHIPTool | ||
// | ||
// Created by Bhaskar on 6/1/20. | ||
// Copyright © 2020 CHIP. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface OnOffViewController : UIViewController | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
47 changes: 47 additions & 0 deletions
47
src/darwin/CHIPTool/CHIPTool/OnOffCluster/OnOffViewController.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// | ||
// OnOffViewController.m | ||
// CHIPTool | ||
// | ||
// Created by Bhaskar on 6/1/20. | ||
// Copyright © 2020 CHIP. All rights reserved. | ||
// | ||
|
||
#import "OnOffViewController.h" | ||
|
||
@interface OnOffViewController () | ||
|
||
@end | ||
|
||
@implementation OnOffViewController | ||
|
||
- (void)viewDidLoad | ||
{ | ||
[super viewDidLoad]; | ||
// Do any additional setup after loading the view. | ||
} | ||
|
||
/* | ||
#pragma mark - Navigation | ||
// In a storyboard-based application, you will often want to do a little preparation before navigation | ||
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { | ||
// Get the new view controller using [segue destinationViewController]. | ||
// Pass the selected object to the new view controller. | ||
} | ||
*/ | ||
- (IBAction)onButtonTapped:(id)sender | ||
{ | ||
NSLog(@"On tapped"); | ||
} | ||
|
||
- (IBAction)offButtonTapped:(id)sender | ||
{ | ||
NSLog(@"Off tapped"); | ||
} | ||
|
||
- (IBAction)toggleButtonTapped:(id)sender | ||
{ | ||
NSLog(@"Toggle tapped"); | ||
} | ||
|
||
@end |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.