Posts

Showing posts from December, 2018

Detecting user inactivity in iOS application in Swift

Image
how to detect the inactivity of the user in our app and perform actions? In our case , disconnecting the user. Step: - 1 First Commend //@UIApplicationMain   in AppDelegate Step:- 2 Create one   UIApplication   Swift File(NSObject File) Coding in UIApplication   File  Playground - noun: a place where people can play import UIKit extension NSNotification . Name {          public static let TimeOutUserInteraction: NSNotification . Name = NSNotification . Name (rawValue: "MTopoUserUIApplication" )     } class MTopoUserUIApplication: UIApplication {      static let ApplicationDidTimoutNotification = "AppTimout"     //  The timeout in seconds for when to fire the idle timer.          let timeoutInSeconds: TimeInterval = 10         var idleTimer: Timer ?     // Listen ...

iOS Development: Collection View Flow layout For Both Orientation

iOS Development: Collection View Flow layout For Both Orientation : In this session we will learn collection view flow layout for both orientation support Step : 1 First add UICollectionViewDelegateFlowLay...