Objective c 如何获得标签';下一个视图上的文本';什么是导航栏?
我有一个自定义单元格,其中有一个标签。现在我想在下一个视图的导航栏中显示所选单元格标签上的文本?我怎么得到它Objective c 如何获得标签';下一个视图上的文本';什么是导航栏?,objective-c,iphone,Objective C,Iphone,我有一个自定义单元格,其中有一个标签。现在我想在下一个视图的导航栏中显示所选单元格标签上的文本?我怎么得到它 //in the main controller didSelectRowAtIndexPath method: MyViewController *controller = [[MyViewController alloc] initWithTitle:label.text]; //in the 2nd controller: -(id)initWithTitle:(NSStri
//in the main controller didSelectRowAtIndexPath method:
MyViewController *controller = [[MyViewController alloc] initWithTitle:label.text];
//in the 2nd controller:
-(id)initWithTitle:(NSString *)theTitle {
if(![super init]) return nil;
self.title = theTitle;
}