我需要從我的父視圖控制器到其子視圖獲取NSString。從父ViewController獲取字符串?
所以我有 'ParentView' ----> 'ChildView'
,我需要得到字符串從ParentView到ChildView。我曾嘗試添加一個方法,該方法在我的ParentView中返回一個字符串,並在ChildView中調用它,但沒有運氣。
不起作用:
ViewController *vc = [[ViewController alloc] init];
startDateLbl.text = [vc string];
任何幫助就如何實現這一目標,將不勝感激,謝謝。
工作!謝謝! – 2012-02-28 16:25:05