I want to display the float value in label using code
i tried with the following code but it doesn’t work!!!! can you please help me out.
find my code for your reference:
UILabel * label;
float a;
a=2;
{ label = [self valueForKey:[NSString stringWithFormat:@"A:%d", a]];}
but it is giving a error as :SIGABRT
At first you should create label, then set formatted text to
textproperty, and after this show on your view (self.view assumes you use it into UIViewController)