您好,我是 IOS Watchkit 开发的新手。
当用户在表格行上使用标签时,我需要传递数据。我已经尝试了使用segue
和使用的两种方法pushControllerWithName
,甚至尝试presentControllerWithName
了该方法
-(void)table:(WKInterfaceTable *)table didSelectRowAtIndex:(NSInteger)rowIndex
{
[self contextForSegueWithIdentifier:@"navigare" inTable:self.tbl rowIndex:rowIndex];
//And Tried following
[self pushControllerWithName:(NSString *)@"ProfileInterfaceController" context: rowValue];
}
这里有什么帮助吗?