peek-pop

Implement 3D touch on multiple collection views or table views in the same view controller

谁说我不能喝 提交于 2019-12-24 07:20:54
问题 I would like to have 3D touch on both of the collection views of my app(Only the "Peek" functionality). They are both contained in the same view controller. No matter what syntax I try it always shows the image and text for the a cell in the first collectionview, even if I choose a cell in the second collection view. How do I separate these so that only one happens specifically for the collectionview cell I have selected? Here is how I am implementing the 3D touch functionality: I put this in

Peek/Pop preview ignores cell corner radius in collection view

我与影子孤独终老i 提交于 2019-12-22 10:07:11
问题 I have added 3D Touch Peek/Pop functionality to my collection view cells and it works great, however I've noticed that the preview frame does not respect the corner radius of the cells. Here's my previewing function: func previewingContext(previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -> UIViewController? { let viewController = storyboard?.instantiateViewControllerWithIdentifier("scholarDetailViewController") as? ScholarDetailViewController let

Peek and Pop on UITableView cells fails with UISearchController

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 07:04:22
问题 Peek and Pop is working with a UISearchController . However, Peek and Pop stops working once you start searching the table using updateSearchResults . I've extended Apple's Table Search with UISearchController demo to support Peek and Pop as an example: Problem is when I start searching the table, Peek and Pop doesn't work anymore. It just select highlights it: The updates I made were to MainTableViewController are: class MainTableViewController: BaseTableViewController, UISearchBarDelegate,

Vibrate iPhone 6S manually like peek and pop?

 ̄綄美尐妖づ 提交于 2019-12-12 07:37:57
问题 How can I manually trigger a single click-like vibration like the ones that happen when using peek&pop, or application shortcuts? 回答1: It seems that these guys have found a way to do it for iOS 9 for phones with Taptic Engine (including the iPhone 6S). http://unifiedsense.com/development/using-taptic-engine-on-ios.html I'm not sure if it applies to iOS 8 or any other phones. They've essentially retrieved the Taptic Engine interface from UIDevice and called actuateFeedback with an integer

3d Peek & Pop for search results

十年热恋 提交于 2019-12-11 08:49:34
问题 I use a Search Bar to filter my Table View. I display the search results in the same view controller that displays the searchable content. It works fine. Except one thing - 3d Peek and Pop is not working for the search results . I did tried the ‘Peek & Pop’ check box in Storyboard segue. I did tried programming peek & pop in my TableViewController. Result is the same: peek & pop works for table view cells but not for search result cells. Here is the search and peek & pop code pieces: // Add a

3D Touch Peek with Top Bar

被刻印的时光 ゝ 提交于 2019-12-08 18:35:28
I have a UICollectionView that shows 'Peek' when 3D Touch 'ed. As default behavior, 'Peek' ignores navigation bars. However, I do want to show a bar just as in iMessage Peek shown below: Both Collection View Controller & Peek View Controller are inside Navigation View Controller. I have following snippet from Apple's Sample code below that I am trying to modify in to above needs: extension ChatTableViewController: UIViewControllerPreviewingDelegate { func previewingContext(_ previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -> UIViewController? { guard

3D Touch Peek with Top Bar

和自甴很熟 提交于 2019-12-08 03:50:01
问题 I have a UICollectionView that shows 'Peek' when 3D Touch 'ed. As default behavior, 'Peek' ignores navigation bars. However, I do want to show a bar just as in iMessage Peek shown below: Both Collection View Controller & Peek View Controller are inside Navigation View Controller. I have following snippet from Apple's Sample code below that I am trying to modify in to above needs: extension ChatTableViewController: UIViewControllerPreviewingDelegate { func previewingContext(_ previewingContext

App is freezing in 'peek and pop' implementation in iPhone 6s

こ雲淡風輕ζ 提交于 2019-12-07 01:42:04
问题 I have implemented peek and pop in my app and it works perfectly. But on continuously trying it for 7-8 times, the app freezes on peek view. The only option I have is to kill the app and re-run. Please let me know the reason for the freeze. I have used the following code for peek and pop in my project: var isPresentedBy3Dtouch: Bool = false var passedDetails:DetailModel! func previewingContext(previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) ->

Vibrate iPhone 6S manually like peek and pop?

自古美人都是妖i 提交于 2019-12-03 07:40:31
How can I manually trigger a single click-like vibration like the ones that happen when using peek&pop, or application shortcuts? It seems that these guys have found a way to do it for iOS 9 for phones with Taptic Engine (including the iPhone 6S). http://unifiedsense.com/development/using-taptic-engine-on-ios.html I'm not sure if it applies to iOS 8 or any other phones. They've essentially retrieved the Taptic Engine interface from UIDevice and called actuateFeedback with an integer corresponding to Peek or Pop. Unfortunately these apps would likely be rejected by the App Store, if that's your