tags:

views:

13

answers:

1

I just started testing my App on my iPod, and I have to click numerous times the info light button which is attached to my second view to show. I have to click it probably 10-15 times, then it finally triggers the second view to show. Of course in Simulator it works fine, but on the iPod it's rather weird that I have to keep hitting it to finally work. Then, sometimes it works without trying to hit it a ton of times. It's rather buggy. Curious if my code is crappy or what other issues are making this feature act weird.

Here is my code

-(IBAction)infoButtonPressed:(id)sender
{
    SecondViewController *second = [[SecondViewController alloc] initWithNibName: nil bundle:nil];

    second.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    [self presentModalViewController:second animated:YES];
}
+1  A: 

It's a small button, sluggish precision on the touch mesh at the corners and fat fingers.

Make a bigger rectangle around the info button to make it easier to hit - or completely swap out the button for a larger button.

Niels Castle
how do i make the area around the info light larger (http://screencast.com/t/M2Y3ZWNlYz)?
HollerTrain
Neils is right. Also, the easiest thing to do might be to simply put another "custom" style button behind it with no image and no title with a transparent background that just has TouchUpInside set to call the same method as the info button. Also might want to set the highlight style on that so it doesn't highlight, and set the state to the actual info button to highlight so it looks like you pressed it instead. I haven't tried it myself, but if I remember correctly you can't resize the system info button :( You might also want to improve your accept rate on this site.
Nimrod
Yup, I'd also go for the "custom" style button.
Niels Castle