Tutorial by Examples

3D touch has been introduced with iPhone 6s Plus. There are two behaviors added with this new interface layer: Peek and Pop. Peek and Pop in a nutshell Peek - Press hard Pop - Press really hard Checking for 3D support You should check if the device has a 3D touch support. You can do this by che...
Objective-C //Checking for 3-D Touch availability if ([self.traitCollection respondsToSelector:@selector(forceTouchCapability)] && (self.traitCollection.forceTouchCapability == UIForceTouchCapabilityAvailable)) { [self registerForPreviewingWithDelegate:self sourceVie...

Page 1 of 1