0
我有一個customcell,其中我有一個label.now我想在nextview的導航欄中選定單元格的標籤上的文本?我如何得到它?如何在下一個視圖的導航欄上獲取標籤的文字?
我有一個customcell,其中我有一個label.now我想在nextview的導航欄中選定單元格的標籤上的文本?我如何得到它?如何在下一個視圖的導航欄上獲取標籤的文字?
//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;
}