Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve XCode swipe gesture to go to previous / next file freeze editor?

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 ?

like image 520
dulgan Avatar asked Aug 06 '14 13:08

dulgan


People also ask

How does a swipe gesture recognizer detect swipes?

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.

How do I use uiswipegesturerecognizer objects?

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.

What is the difference between createswipegesturerecognizer () and helper method?

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.

What is a swipe and how does it work?

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.)


1 Answers

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.

  1. Shut down your Mac.
  2. Locate the following keys on the keyboard: cmd ⌘alt ⌥PR. You will need to hold these keys down simultaneously in next step.
  3. Turn on the computer and immediately press and hold the cmd ⌘alt ⌥PR keys before the gray screen appears.
  4. Hold the keys down until the computer restarts and you hear the startup sound for the second time.
  5. Release the keys.
  6. 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

like image 112
dulgan Avatar answered Sep 24 '22 05:09

dulgan