Pergunta

Estou trabalhando em um aplicativo de utilitário. Quando eu executo o aplicativo no simulador, clicando, a imagem na parte inferior vira a exibição em um flash. Mas quando executo o aplicativo no dispositivo iPhone, ele se comporta anormalmente. Às vezes, ele vira a vista em apenas 1 toque. No outro, não se preocupa em reagir, mesmo depois de tocar na imagem 10 vezes. Eu tentei com outro aplicativo de utilitário também - o mesmo problema. Portanto, não é um problema com o código que acredito.

Qualquer ajuda para resolver esse problema é muito apreciada.

Obrigado, AJ

Foi útil?

Solução

This is a problem because the 'i' button is not very big by default and touches are missed easily.

You need to put another button in front of the 'i' button with the 'Custom' type in Interface Builder, so that it doesn't have any image. Then you can make this invisible button much larger and connect it to the same action as the info button.

You also need to enable "shows touch on highlight" in Interface Builder so that you get the white glow effect when the invisible button is touched.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top