Xcode 8 - Simulate 3DTouch & ForceTouch - ios-simulator

Can someone tell me if we can simulate 3DTouch with the Xcode 8 iOS simulator and how?
The option in my simulator looks like disable.

You need a Force Touch-enabled device, so either a Macbook with Force Touch-enabled trackpad, or any(?) Mac with a Magic Trackpad 2.
Did not tried it myself, but positive feedback here :
I can confirm that with Xcode 7.3 beta 5 (7D162j), I see a menu item in the Simulator for "Use Trackpad Force for 3D Touch." And when I connect my Magic Trackpad 2 to my '14 MacBook Air, that menu item becomes enabled and I can access peek & pop, shortcuts, and pretty much everything else. It's not a perfect simulation of 3D Touch (after all, they're based on different user-interaction paradigms), and there's a bit of lag, but it should be more than sufficient to test on the simulator.
From: https://forums.developer.apple.com/thread/26744

Related

I am looking how to Go Back in iOS Simulator

I am looking for the keyboard shortcut for Going Back (to last screen) using the iOS Simulator.
I have tried searching, I didn't find anything.
I know this thread is old, but am gonna answer, it may help some on.
I dont know about a keyboard short cut to go back to the prev screen but on my iphone 12 simulator, I am swiping from the most left part of the screen to the right horizontally. Its working.
The iOS Simulator just runs iOS, so the way you would "go back" in the Simulator would be the same way you do on device. If you designed you application to "go back" with cmd-b (for instance), you would issue cmd-b in Simulator while your simulator device has focus. If you go back with a given swipe gesture, the same gesture should work in the Simulator.

How can you change the apple watch system text size on the simulator?

On an actual apple watch you can change the system font size, just like you can on the iPhone itself.
In doing so it's hi lighted a bug with what I was doing trying to get a timer interface object displaying at a smaller than standard size. I'm trying to test this on the simulator though and unfortunately you cannot seem to access the system text size on there. The apple watch app on the iPhone in the simulator doesn't show anything, and the apple watch simulator itself obviously just shows a black screen when not showing your app.
Is this just something that you cannot test on the simulator at the moment?
Cheers
There are many things that don't work in the simulator (yet). For example speech input, correct synchronization of NSUserDefaults, etc. You may file a bug report for your problem.

Change browser to display retina or webkit-min-device-pixel-ratio: 2 [duplicate]

How can you simulate a retina display (HiDPI mode) in Mac OS X 10.8 Mountain Lion on a non-retina display?
Search for, download, and install Apple's free Additional Tools for Xcode 8 (for previous Xcode releases search for Graphics Tools for Xcode according to your version).
Note: free Apple Developer account required.
Launch Quartz Debug application.
Go to menu: Window ---> UI Resolution.
Check Enable HiDPI display modes.
Quit Quartz Debug.
Open System Preferences.
Select Displays icon.
If using multiple display, select the configuration window on the display you wish to simulate HiDPI mode on.
Under Resolution:, select Scaled radio button.
Find a desired resolution postfixed with (HiDPI) and select it.
Your display is now running in HiDPI mode, simulating a retina display.
Source: High Resolution Guidelines for OS X
I found the following instructions. It seems to work, and it is much easier than the Quartz Debug approach.
"Enable HiDPI mode in Mountain Lion w/o Quartz Debug"
https://gist.github.com/3191869
In brief, run the following commands, log out, log on, and the HiDPI resolutions are available in the display preferences:
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled
(In my case the first command was enough; the second command just prints an error message.)
Edit: (5/31/2016)
For users trying to do this on El Capitan, please read the FAQ on SwitchRes's website. Also, if something's still not working after you did all the steps in the FAQ, consider uninstalling and reinstalling SwitchResX. That solved the issue I was having on one of my laptops.
Original:
After reading through several forums, websites, blogs.
I am here to present a solution for users with 15" MacBook Pro with Retina display connected to a Thunderbolt Display.
First of all,
Terminal command of modifying plist
Quartz Debug
Holding option and select "Scaled" in System Preferences
ResolutionTab (Mac App Store)
These methods DO NOT work for MBPr with Thunderbolt Display, for whatever reasons.
You will not see the HiDPI options to be selected.
The only tool I found that actually gives us the options is SwitchResX.
However another problem exists here.
Most users with this setup, I believe, are trying to use 1280x720 HiDPI because it's half the native resolution of the TBD.
According SwitchResX's FAQ, in some cases it is not possible to set to this resolution because of a bug within OS X itself.
Here's a screenshot for your reference:
After contacting the developer, he presented a workaround - adding one more pixel - which worked for me.
Install SwitchResX and open it from System Preferences.
Go to Thunderbolt Display tab, and add a Custom Resolutions with Scaled Resolution at 2562 x 1440
Here's a screenshot
Save using command + s. (or simply close the window and use the prompt up)
Restart the laptop.
Go to SwitchResX and select the new custom resolution in the Current Resolution tab. (Sometimes it doesn't show up right away, play around with it and it should.)
Here you go.
I hope this answer gets to users with this setup because it is really frustrating to use 16:10 resolution on a 16:9 display.
For those unable to enable HIDPI on rMBP or new MBA, I experienced the same on my rMBP 15" with Air Display. I solved the problem by installing SwitchResX. With the boolean setting enabled as shown in the referenced gist, the HIDPI setting shows up.
Dragging seems a little laggy in Air Display, but otherwise works great.
Try this
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES
[from here]
If your monitor supports it, it may also be worth setting the DisplayPort version to 1.1 instead of 1.2.
I have a late 2010 Mac Air with a Samsung S27D850 display and had all sorts of intermittent resolution switching issues until I made that change.
As for me its pretty good app that give you opportunity for changing resolution any that you want.
SwitchResX for Mac and MacBook.
This app resolved all my problems with resolution.

Method to simulate multitouch (n > 2) on ios?

Is there a method to add a third (or more) touch location on the iOS simulator?
Holding down the Option key will give you a second touch point... but I haven't figured out how to enable more and would like to.
Thanks,
This app & framework, iSimulator, seem to be good ways of doing this, if you're still looking for this to be answered.
iSimulate is an application/library pair designed to solve the issue
of not being able to use multi-touch and the accelerometer in the
iPhone Simulator. Now, with iSimulate on your iPhone or iPod Touch, it
wirelessly sends multi-touch events, the accelerometer and compass
events, and the GPS location to the iPhone Simulator.
http://www.vimov.com/isimulate/features/
Saw it mentioned here:
http://iosdevelopertips.com/tools/isimulate-testing-multi-touch-events-accelerometer-movements-using-xcode-simulator.html

xcode 4 switch between header and source

this link
indicates that it is ctrl+cmd+up or down just like xcode says but mine seems to be revealing in finder even though the shortcut says otherwise.
Anyone else having this issue? How do you fix it.
Instead of using key combinations I like to use gestures for most of these kinds of actions in Xcode. For this one simply slide 3 fingers up or down and wait a moment. It will switch between the header and implementation file. I find it works very well on a Macbook Pro trackpad or my Magic Trackpad which has the enough space for these gestures. If you have a Magic Mouse you may not have enough space for this and other gestures.
I think you will find it easier to remember this gesture over the key combinations.

Resources