尝试在UITableView和UIViewController之间传递一些数据时遇到问题。 我正在寻找谷歌和stackoverflow,但没有成功。
这里NSLog正在打印我想要的东西
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
DetalhesPosto *detalhesPosto = [[DetalhesPosto alloc]init];
detalhesPosto.aliasPosto = alias;
NSLog(@"%@",detalhesPosto.aliasPosto);
[self.navigationController pushViewController:detalhesPosto animated:YES];
[detalhesPosto release];
}
当navigationController调用视图时,detalhesPosto有一个代码:
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
labelAliasPosto.text = [NSString stringWithFormat:@"%@",aliasPosto];
NSLog(@"YES or NO ? %@",aliasPosto);
}
但NSLog正在打印=> 2012-11-06 18:48:58.061 MAP [7006:f803]是或否? >
请你劝我?
韩国社交协会 圣保罗