I want to use my own image for the Action Button in my app. I have the image sized at 30px X 30px. In my app I use the code:
UIBarButtonItem *heart = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"action@2x.png"] style:UIBarButtonItemStyleDone target:self action:@selector(theactionbutton)];
self.navigationItem.rightBarButtonItem = the action;
However, the button seems too far to the left. I have attached two images to this, the first shows the original action button, and the second shows my custom image one, for comparison. Any thoughts why it is moved to the left?