Last active
August 29, 2015 14:19
-
-
Save Koze/8e445f03e6b7d31670d2 to your computer and use it in GitHub Desktop.
interfaceProperty Property of WKInterfaceController
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
#import <WatchKit/WatchKit.h> | |
#import <Foundation/Foundation.h> | |
@interface InterfaceController : WKInterfaceController | |
@property (nonatomic) IBOutlet WKInterfaceLabel *textLabel; | |
@end |
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
#import "InterfaceController.h" | |
@implementation InterfaceController | |
- (void)awakeWithContext:(id)context { | |
[super awakeWithContext:context]; | |
NSLog(@"%@", self.textLabel.interfaceProperty); | |
// console output is "textLabel" | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment