开发者

How to get label's text

开发者 https://www.devze.com 2023-02-13 16:50 出处:网络
I am learning iPhone programming. I want to know how to get any value that label holds. In my case label te开发者_如何学Cxt holds the float value (I am displaying that value from Slider\'s changed val

I am learning iPhone programming. I want to know how to get any value that label holds. In my case label te开发者_如何学Cxt holds the float value (I am displaying that value from Slider's changed value). And I am trying to get that float value into a float variable.

Thanks


perhaps use the "floatValue" method of NSString

myFloat = [myLable.text floatValue];
0

精彩评论

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