// 1、init
// 2、表盘加载的时候调用(类似awakeFromNib)
- (void)awakeWithContext:(id)context {
[super awakeWithContext:context];
// Configure interface objects here.
NSLog(@"%s, line= %d", __FUNCTION__, __LINE__);
}
// 3、视图即将展示的时候调用(类似viewWillAppear)
- (void)willActivate {
// This method is called when watch view controller is about to be visible to user
[super willActivate];
NSLog(@"%s, line= %d", __FUNCTION__, __LINE__);
}
// 3、跳页的时候调用(类似viewDidDisAppear)
- (void)didDeactivate {
// This method is called when watch view controller is no longer visible
[super didDeactivate];
NSLog(@"%s, line= %d", __FUNCTION__, __LINE__);
}