开发者

iphone:Error while fetching data from array of one view to another view

开发者 https://www.devze.com 2023-03-25 21:48 出处:网络
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

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]];
0

精彩评论

暂无评论...
验证码 换一张
取 消