Questions tagged [3dtouch]

Use this tag when developing apps that use the 3D Touch sensitivity feature on newer Apple Devices (iPhone 6s / 6s Plus and newer).

3D Touch is a new feature in Apple's iPhone 6s and 6s Plus that allows for depth sensitivity.

From the Apple iPhone 6s page:

3D Touch

The next generation of Multi‑Touch.

iPhone 6s introduces an entirely new way to interact with your phone. For the first time, iPhone senses how much pressure you apply to the display. In addition to familiar Multi‑Touch gestures like Tap, Swipe, and Pinch, 3D Touch introduces Peek and Pop. This brings a new dimension of functionality to the iPhone experience. And when you use 3D Touch, your iPhone responds with subtle taps. So not only will you see what a press can do — you’ll feel it.

Not to be confused with , which has one fewer sensitivity level.

361 questions
0
votes
1 answer

3D Touch Quick Actions not working properly with SpriteKit

I'm currently developing a game using Swift 3, SpriteKit, and Xcode 8 beta. I'm trying to implement static 3D Touch Quick Actions from the home screen through the info.plist. Currently, the actions appear fine from the home screen, but don't go to…
Nik
  • 1,664
  • 2
  • 14
  • 27
0
votes
1 answer

Add 3D touch dynamic quick action with view controller inside navigation

I want to implement 3D touch quick actions in my app with the following code: func createQuickActions(application: UIApplication) { let shortcut1 = UIMutableApplicationShortcutItem(type: NSBundle.mainBundle().bundleIdentifier!+".CrearActividad",…
Ces
  • 343
  • 3
  • 13
0
votes
0 answers

iOS 9 3D Touch Home screen Dyanamic quick action

As per the Apple documentation : Define dynamic quick actions with the UIApplicationShortcutItem class and associated APIs. So i just want to know that Can we use dynamic quick actions with our custom web service APIs?. I want to pull data from API…
0
votes
1 answer

When and how often to populate the dynamic shortcuts (UIApplication.sharedApplication.shortcutItems)?

I'm reading about adding dynamic shortcuts to the homescreen for 3dTouch enabled devices. It essentially boils down to reading / writing to the shortcutItems member array of UIApplication.sharedApplication. My question is: is this array persisted?…
Roay Spol
  • 1,188
  • 1
  • 11
  • 17
0
votes
1 answer

UITouch Force on touchesBegan

3D touch seems really cool and I wanted to see how it would work in a musical context. I was reading a bit about 3D touch and it seems like the force property almost always reads as 0 when a touch begins (touchesBegan method). How do I get a usable…
yun
  • 1,243
  • 11
  • 30
0
votes
1 answer

Loading a view from a 3D Touch Quick Action

I'm adding dynamic 3D touch quick actions to my iOS app. I was able to setup the code that displays each action, but I am having trouble finding what code would go within the code below. When the action is chosen, I need the action to open up one…
John
  • 1
  • 2
0
votes
1 answer

How to disable peak & pop effect (strong pressure's effect with Safari on iPhone 6s)

I need to disable peak effect (strong pressure's effect with Safari on iPhone 6s) on "a" element in this code (bootstrap environment):
0
votes
0 answers

how to detect index path of a collection view while using 3d touch?

I am working on ios app in that i want to implement 3d touch peak and pop in my collection view.for that i am using the below code how to detect index path of a collection view while using 3d touch using objectiveC?
Munavvar
  • 11
  • 6
0
votes
1 answer

3dtouch Attempt to presenton * on * which is already presenting (null)

My app was working fine without 3Dtouch implementation; But with the 3Dtouch added the app continues to work great and rotates normally until 3D touch is used (peek or pop);I had a tableViewCell handled peek/pop and the preview delegate.The…
0
votes
1 answer

prepareForSegue Not Being Called upon Peeking

I'm trying to implement peek and pop support for a static Table View. I was successful at getting peek and pop to actually work, but prepareForSegue is not being called when peeking on a cell. // MasterPreviewing.swift import UIKit extension…
Andrew
  • 63
  • 6
0
votes
1 answer

3D Touch quick actions not working when app first launches

I am having some problem with 3D Touch. It works perfectly, except when the app is first launched. Here is the following code in my AppDelegate: func handleQuickAction(shortcutItem: UIApplicationShortcutItem) -> Bool { var quickActionHandled =…
Rehaan Advani
  • 945
  • 1
  • 12
  • 24
0
votes
1 answer

3D Touch to multiple buttons in one class

i am implementing 3d touch peek an pop feature in iOS. This is the code i have written for one button - (UIViewController *)previewingContext:(id )previewingContext viewControllerForLocation:(CGPoint)location { …
Aryan Kashyap
  • 121
  • 1
  • 12
0
votes
1 answer

Loading a view from 3D Touch shortcut menu

I have added a 3D Touch app shortcut for my app, but when tapping on it, the app crashes with "fatal error: unexpectedly found nil while unwrapping an Optional value". Something is nil, though I'm not sure what/why as I have this code working in…
jspinella
  • 2,013
  • 3
  • 25
  • 39
0
votes
2 answers

Can we change 3D touch short cut item icon?

Here is my code. UIApplicationShortcutItem *bookmarksShortcutItem = [[UIApplicationShortcutItem alloc] initWithType:@"bookmarks" localizedTitle:@"Bookmarks" localizedSubtitle:@"test" icon:[UIApplicationShortcutIcon…
Ajith Kumar
  • 1,202
  • 1
  • 10
  • 22
0
votes
1 answer

How to add a quick action colored image

How can I add a 3D Touch Colored Quick Action image like the Most Recent Action in Photos app? My code doesn't seem to work UIApplicationShortcutIcon *mostRecentIcon = [UIApplicationShortcutIcon iconWithTemplateImageName:@"imagename.png"]; Can you…
Nick Lasta
  • 121
  • 1
  • 8