Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
i am having a slow button response, when i push a button, the button turns dark for about a second, then as soon as it returns normal the code is executed, which takes only 0.0014 seconds to execute the code in the buttonPressed selector. I'm not sure why the delay is there though. my view hierarchy goes something like this
If i place the button as a subview of uiview 1, or uiscrollview1, the button performs great. as soon as the button is placed as a subview of scrollview2 or any subviews of scrollview2, there is the 1 second delay.
If i make either of the delaysContentTouches to yes, instead of no, the buttons perform instantly, but then my content in the scrollview doesnt work correctly, the touch drag goes to dragging the scrollview instead of the touch going to my subviews. so i cant fix it by making delaysContentTouches = YES.
also i noticed if i touch the buttons with 2 fingers instead of 1 they perform instantly.
ok, i have found the problem, if i comment out the double tap recogniser on the second uiscrollview, my buttons work perfect. i just added a delegate to the recogniser to ignore if the class is a uibutton, and now its perfect
Replies
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome