我有一个customcell,我有一个label.now我想在nextview的导航栏中选定的单元格标签上的文字?我怎么得到它?
答案 0 :(得分:1)
//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;
}