iOS Pebble-Watch Launching&杀死“Self.connectedWatch”

时间:2014-02-02 17:20:34

标签: ios iphone pebble-watch

当我阅读启动和杀死Pebble应用程序的示例代码时:

[self.connectedWatch appMessagesLaunch:^(PBWatch *watch, NSError *error) {
    if (!error) {
        NSLog(@"Successfully launched app.");
    }
    else {
        NSLog(@"Error launching app - Error: %@", error);
    }
}
];

这意味着什么自我?我怎样才能创造出类似自我的东西 在这段代码中,因为我给出了错误,在类型对象上找不到属性'connectedWatch'。

1 个答案:

答案 0 :(得分:1)

只需查看.h文件,然后在@interface@end之间添加此属性,就像这样:

@property (strong) PBWatch *connectedWatch;

相关问题