Things to Keep in Mind for iOS 11 App Development – Part 1

Overview

iOS 11 is world’s most advanced mobile OS. It provides most amazing possibilities for AR(Augmented Reality) to the application and some other cool stuffs as well. With iOS 11 iDevices has become much better and more capable than ever.

Drag and Drop

  • This feature mainly focus for an iPad. It moves almost everything magically from one application to another application. It has been designed for large and multi touch displays.
  • For an iPhone it is done within application itself.
  • In tableview, there are two new delegate for drag and drop functionality
    UITableViewDragDelegate
    UITableViewDropDelegate

How to implement in your application?

First need to set delegates:

How to drag items in UITableView?

UITableViewDragDelegate

First Method(itemsForBeginning session), will lift only one item and drag it but by implementing Second Method(itemsForAddingTo session) you can select and drag multiple items.

ios11-image2

UITableViewDropDelegate
First need to set delegate:

  • Here First and Second Methods are optional. First Method(canHandle session), will check table view and can handle drop or not. Second Method(dropSessionDidUpdate session), is used for animation while dropping item and also check for valid drag session.
  • Third Method(performDropWith coordinator), will perform drop of items at particular indexPath.

Swipes Actions

ios11-image3

How to implement to your application?

Two New Methods in UITableViewDelegate.
– (leadingSwipeActionsConfigurationForRowAt indexPath)
– (trailingSwipeActionsConfigurationForRowAt indexPath)

Conclusion

I hope my above blog has helped you to get your hands on iOS 11 Application Development.
Part 2: Things to keep in mind for ios 11 app development- Part 2

mm

Kevin Shah iOS Developer

I am Kevin Shah, iOS Developer at Yudiz Solutions Pvt. Ltd. - a leading iPhone App development company. I am a tech savvy Guy. Passionate about Mobile Technology, Cricket and Gaming.

Comments are closed.

Top