in my iPhone App
when i capturing an image and show it in button at that time all thing works fine.
After going to the next screen when i cme back to the original screen button image will rotate.
When i dissmiss the modelview and come to the original view button image rotate to 90 degree.Please guide me.
my code in view will appear:
NSArray *path=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
NSUserDomainMask, YES);
NSString *newPath=[[path objectAtIndex:0] stringByAppendingPathComponent:@"bg5.png"];
[btnUserImage setImage:[UIImage imageWithContentsOfFile:newPath] forState:UIControlStateNormal];
hope this code will help you..
if you have problem of rotation image then check the image orientation and rotate it like this..