I need to get the CGPoint of a UIBarButtonItem. I know I can get them of a normal UIButton by doing this:
- (IBAction)buttonTapped:(UIButton *)sender
{
CGPoint coordinates = sender.frame.origin;
}
But this does not seem to work if I alter it for a UIBarButtonItem. The reason I need the program to return these values to me, is because otherwise with the iPhone 5, the 4S and before screen I need to set up 3 possible positions when I include the landscape version, which I will do if there is no easier way to achieve this.