iphone:Error while fetching data from array of one view to another view
In my apps i have two simple view. in first view i 开发者_运维知识库show only static values through array into table now by clicking on the row the view ll change an the value of that row will show in the second view. In my apps values are stored correctly but when i code in second view to display that value it does not show any error but value is not display..My code is below:
-(void)viewWillAppear:(BOOL)Animated{
txtName.text=data;
}
data is NSString in that i stored the values of an array.
Following will work...
txtName.text = [NSString stringWithFormat:@"%@",[data description]];
精彩评论