Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Objective c - variable to label

Is a little problem with save int variable to label.

int i = idpole;
[lid2 setText:@"%i", i]; 

Thats bad, but i tried more thing... i cant set this "settext:i", because this doesnt work. I try found something on google, but without sense.

like image 871
Firejs Avatar asked Apr 20 '26 22:04

Firejs


1 Answers

use

int i = idpole;
[lid2 setText:[NSString stringWithFormat:@"%i", i]]; 
like image 134
Inder Kumar Rathore Avatar answered Apr 23 '26 11:04

Inder Kumar Rathore



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!