Skip to content

Instantly share code, notes, and snippets.

@Koze
Last active August 29, 2015 14:19
Show Gist options
  • Save Koze/8e445f03e6b7d31670d2 to your computer and use it in GitHub Desktop.
Save Koze/8e445f03e6b7d31670d2 to your computer and use it in GitHub Desktop.
interfaceProperty Property of WKInterfaceController
#import <WatchKit/WatchKit.h>
#import <Foundation/Foundation.h>
@interface InterfaceController : WKInterfaceController
@property (nonatomic) IBOutlet WKInterfaceLabel *textLabel;
@end
#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