Please tell me how to convert bytes to NSInteger/int in objective-c in iPhone programming?
If by byte, you mean an unsigned 8 bit value, the following will do.
uint8_t foo = 3; // or unsigned char foo... NSInteger bar = (NSInteger) foo;
or even
NSInteger bar = foo;