Hi to all,
我將一個變量從first.m傳遞給了seViewController.m。我能夠使用NSLog(@variable)打印該變量,但我無法使用textField.text = variable。如何在文本框中打印該變量?在文本框中顯示字符串的問題
First.m
-(void)buttonPressed01
{
seViewController *seView = [[seViewController alloc] init];
[seView insert:myString];
[self.navigationController popViewControllerAnimated:YES];
}
seviewcontroller.m
-(void)insert:(NSString*) myString
{
NSLog(@"%@",myString);
textField.text=[NSString stringWithFormat:@"%@",myString];
}
感謝它的工作... – Aravindhan 2011-04-21 04:54:19
@ranisha:我想彈出視圖控制器。我怎樣才能做到這一點? – Aravindhan 2011-04-21 07:49:21
@aravindanarvi你想要彈出寫: - [[self navigationController] popViewControllerAnimated:YES]; – Gypsa 2011-04-21 08:06:40