开发者

NSArray data in UILabel

开发者 https://www.devze.com 2023-01-06 15:55 出处:网络
I am trying to put NSArray data by([array valueForKey:@\"v开发者_如何转开发alue_name\"]) in uilabel it throws exception.

I am trying to put NSArray data by([array valueForKey:@"v开发者_如何转开发alue_name"]) in uilabel it throws exception.

Regards, sathish


How are you assigning this to the UILabel?

You should be doing something like:

myLabel.text = [myArray objectAtIndex:0];

If you want to retrieve it using the valueForKey method then a variable type such as NSDictionary maybe a better match for it...

0

精彩评论

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