Since this morning I'm facing a really annoying bug in XCode 5 on Mavericks :
I'm heavily used to swipe from left to right with two fingers on the MacBook trackpad to go to the XCode editor previous / next files. BUT, now, doing this totally freeze the editor after having just moved for something like 5 px. After that I have to close XCode and reopen it to make the editor work again.
Pressing the previous / next button works wel since it doesn't trigger this buggy animation.
Did anyone had this problem before or has any clue to solve it ?
A swipe gesture recognizer detects swipes in one of four directions, up, down, left, and right. We set the direction property of the swipe gesture recognizer to down. If the user swipes from the top of the blue view to the bottom of the blue view, the swipe gesture recognizer invokes the didSwipe (_:) method on the view controller.
Drag the appropriate object from the library and drop it onto your view. A UISwipeGestureRecognizer object tracks the motion of the user’s finger across the screen either horizontally or vertically. A swipe requires the user’s finger to move in a specific direction and not deviate significantly from the main direction of travel.
The helper method doesn't contain anything new. It accepts a single argument of type UISwipeGestureRecognizer.Direction, the direction of the swipe gesture recognizer. The createSwipeGestureRecognizer (for:) method creates and configures a swipe gesture recognizer and returns it.
A swipe requires the user’s finger to move in a specific direction and not deviate significantly from the main direction of travel. (The direction and number of fingers required for the gesture are configurable.)
In fact this problem is affecting other swipe gesture like the previous / next swipe in Safari.
I found a way to fix this on Apple Support Forum, by resetting the NVRAM.
- Shut down your Mac.
- Locate the following keys on the keyboard: cmd ⌘alt ⌥PR. You will need to hold these keys down simultaneously in next step.
- Turn on the computer and immediately press and hold the cmd ⌘alt ⌥PR keys before the gray screen appears.
- Hold the keys down until the computer restarts and you hear the startup sound for the second time.
- Release the keys.
- When your Mac finishes starting up, you might want to open System Preferences and adjust settings that have been reset, such as sound volume, display resolution, startup disk selection, or time zone.
Apple support: https://support.apple.com/en-us/HT204063
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With