ArchiveDecember 2017

Quick Actions In Swift

Q

Apple has added quick actions to the app icon so users can deep link into an area of your app quicker. By pressing the app icon of the latest devices, the user obtains a set of quick actions. When the user selects a quick action, your app activates or launches and your app delegate object receives the quick action message. DEFINE QUICK ACTIONS In app’s Info.plist file create a...

Applying Query in core data

A

There are few cases when we prefer to use Core data that Sqlite. Core data is faster in fetching records than SQLite. As like sqlite we can fetch data by specifying query in Core data. Following is the way to set your query for fetch request of core data. let request = NSFetchRequest() if #available(iOS 10.0, *) { request.entity = EmpData.entity() } else { request.entity = NSEntityDescription...

UserDefaults with NSCoding and Codable to save any kind of Data… Part – 1 ?

U

 UserDefaults  is one of the good and handy storage you can use. You can use UserDefaults to store any basic data type for as long as the app is installed. For example, you can use basic types as Bool, Float, Double, Int, String, or URL, but you can also write more complex types such as arrays, dictionaries and Date – and even Data values. Advantage: After writing data to UserDefaults, when you...

Push Notification displayed when application in foreground in iOS 10

P

Introduction:  The new framework called “UserNotifications” is introduced with iOS 10 SDK. The UserNotifications framework (UserNotifications.framework) supports the delivery and handling of local and remote notifications when application is in foreground Steps for implement code to handle push notifications in iOS 10 Import UserNotifications.framework in your AppDelegate file :                 ...

Custom Protocol and Delegate

C

Custom protocols and delegate is the very efficient way to passing values to other controller from one controller. If we required pass the value for only one controller in entire project the we should not go for declaring “Global Variable” to pass the values. Example:  Display PopOver for option selection on button click event which placed on TableViewCell. On option selection make...

Category