There are three problems that I see with your code:
1. When do you
lettreChiffre[1]=(char) j;
remember jis the number between 1and 8, so you get an ASCII character whose value j, not a character 1...8. You have to use
lettreChiffre[1]= '0' + j;
2.
lettreChiffre char 2, , . , .
char lettreChiffre[3];
lettreChiffre[2] = '\0';
3.
printf NSString, .
NSLog(@"adresse finale: %@", mynsstring)
NSString C-:
printf("adresse finale: %s", [mynsstring UTF8String]);
, @dreamlax, . , - , . , , , @dreamlax.