Hello everyone ,
I need help . how can i integer value from array to UILabel on side by side .
Example: i have 10 in my integer array , how can I 2 4 5 6 7 8 9 10 so . ? With line works, but not next to each other .
----------
Hello everyone ,
I need help . how can i integer value from array to UILabel on side by side .
Example: i have 10 in my integer array , how can I 2 4 5 6 7 8 9 10 so . ? With line works, but not next to each other .
I need help . how can i integer value from array to UILabel on side by side .
Example: i have 10 in my integer array , how can I 2 4 5 6 7 8 9 10 so . ? With line works, but not next to each other .
Code:
NSInteger rest[32];
int zahl = myLabel.text.intValue;
int count = 0;
bool go = true;
NSString *string = @"";
if (go == true) {
for (int i = 0; i < 32; i++) {
rest[i] = zahl % 2;
zahl = zahl / 2;
count ++;
myLabel.numberOfLines=2;
string = [string stringByAppendingFormat:@"%li \n", (long)rest[i]];
if (zahl == 0) {
while (count > 0) {
NSLog(@"%li", (long)rest[count - 1]);
count--;
}
myLabel.text = string;
break;
}
}
----------
Hello everyone ,
I need help . how can i integer value from array to UILabel on side by side .
Example: i have 10 in my integer array , how can I 2 4 5 6 7 8 9 10 so . ? With line works, but not next to each other .
Last edited by a moderator: