Just upgraded to Xcode 4.1 (and Lion).
Does anyone know what the gesture is for 'Jump to Next Counterpart' (or a reference for the gestures)? It switches between the header and implementation file.
It was the 3-finger swipe up / down, but now the OS is using that gesture.
The accelerator keys are Control+Command + up arrow (from the Navigate menu).
It's 2-finger swipe left and right. In your .h file, swipe 2 FINGERS LEFT to go to the .m. In your .m file, swipe 2 FINGERS RIGHT to go to the .h.
(Really strange update indeed)
Swapping to counterpart is now performed using a four-finger swipe either upwards or downwards. As before it seems to just oscillate between the two files. Hope this helps...
It seems that the four finger gesture to change between the header and implementation file only works on a Magic trackpad
Related
I'm having a problem scrolling in all the JetBrains IDEs (PyCharm, PhpStorm) using touch screen. I have a Dell XPS 15 with a touchscreen.
When I try to scroll it just selects code. I have tried in regular Notepad and Notepad++ and there works as expected.
Has anyone else experienced it? Is there any solution to this? It would be really great to scroll through the code using touchscreen.
I have found temporary solution by installing plugin Code glance (https://plugins.jetbrains.com/plugin/7275). The plugin provides a sidebar with code map, which is similar to the one from Sublime. In the sidebar it is possible to navigate through code. It is not ideal but it's better than nothing.
Yes, I was having the same problem. And luckily I got a gesture to scroll using two fingers:
Scroll up: Tap and hold using one finger and swipe away[from close to distant of the first finger] using another finger. Swiping away from each other also works.
Scroll Down: Tap and hold using one finger and swipe in[from distant to close of the first finger] using another finger. Swiping close to each other also works.
I downloaded the xcode for iOS6 along with the simulator. Now, when I run my cocos2d project, the screen doesnt follow along with the device turns. It always stays in the "up" position, when it used to always stay in the "right" position. Does anyone know how to fix this?
iOS 6 introduces a new mechanism for nominating supported interface orientations; see 'Handling View Rotations' in the UIViewController documentation.
The short version is that unless you implement -supportedInterfaceOrientations on your view controller to further limit the options then whatever orientations you specified as supported in your Info.plist will be used.
So quite probably you want to click on your project in the top left hand corner of the Xcode project navigator, select your target in the left-hand bar of the content on the right, then 'Summary' in there and ensure you have only the landscape right orientation selected.
E.g.
I'm trying to add two gestures to a UIView in interface builder (swipe left and swipe right).
The first one (swipe left) works ... but the 2nd swipe gesture (swipe right) doesn't work, and I think it's because I can't connect the "New Referencing Outlet Connection" to the view (like my 1st gesture has) [see attached image].
Is this the reason?
I achieve this programatically, but would really like to understand how to add multiple gestures in interface builder.
Look at the connections menu. They both automatically get added to the gestureRecognizers collection.
I made a short tutorial video on how to use multiple gestures (right and left) in the interface builder. No coding is needed. I think a video is a better explanation for you :)
My english is not the best, but I hope it helps you! :)
Xcode connect multiple gestures
I have a UIView within a UIScrollView. When i want to simulate the drag event on the UIView, swipe event on the UIScrollView is being triggered.
As per the documentation , there isn't much of a difference between swipe and drag.
Swipe
1- Place the pointer at the start position.
2- Hold the mouse button.
3- Move the pointer in the swipe direction and release the mouse button.
Drag
1- Place the pointer at the start position.
2- Hold down the mouse button.
3- Move the pointer in the drag direction.
On an ipad I can use two fingers two swipe and one finger to drag. Now, how do i go about doing something similar on the simulator; drag instead of a swipe?
Edit 1:
I should have been clearer first up. Anyway, my problem is that the mouse drag is firing the swipe instead of drag, thereby scrolling the scroll view instead of passing on the drag event to the UIView contained by the scroll view.
I am on macbook pro. Two-finger swipe on the touchpad is being ignored. Touch and drag is causing the same thing as mouse-drag.
Thanks
See Jeff LaMarche's quick note on how to do this. It's documented in the same page you're reading, but Jeff's explanation is clearer.
If you want to simulate a two-finger gesture in the iPhone simulator, hold down the option key. You will get two dots on the screen instead of one. The two dots will default to pinching - if you bring the dot closer to the center of the screen, the other dot comes toward the center, making it easy to simulate a pinch in or pinch out.
If you want to do a different two-finger gesture, get the two dots the distance apart that you want them to be, then hold down the shift key, while still holding down the option key. That will lock the position of the two finger presses together so you can do, for example, a two-finger swipe.
see this documentation below:
iOS Simulator User Guide
Just use the mouse to drag the view, aka, left click the view then move the mouse
I ended up disabling the scrolling from the UI and added two buttons to scroll the scroll view. Since this is a work around only for the emulator, I have used #ifndef to hide the buttons while building for the device.
Just installed Xcode 4 so far so good, except that Apple changed all the keyboard shortcuts! Anyone know how to toggle between .h and .m?
Apple changed all sorts of shortcuts, but to switch between header and implementation, the new shortcut is,
⌃ + ⌘ + ↑/↓
You can change it back to the previous ⌥ + ⌘ + ↑/↓ in Preferences > Key Bindings.
Look for the Jump to Next Counterpart and Jump to Previous Counterpart commands.
If you are working on a big screen, you could use the Assistant layout's split view, and have the .h and .m files side by side.
Hither be the Grand Unified Gigantic Sheet of Xcode 4 Keybindings.
Download it.
Preview it.
Print it.
Read it.
Know it.
Use it.
Be it.
You can also use the 3 finger swipe up or down gesture on a trackpad.
The commands we're looking for are in the Navigate menu bar item.
Jump to Next Counterpart
and
Jump to Previous Counterpart
Once you have the menu item names, these can be assigned to any keyboard shortcut.