UITextField Underlined In Swift 3 Create a custom UITexField and add this method to it then override layoutSubviews() and call it from there func underlined(){ let border = CALayer() let lineWidth = CGFloat(0.3) border.borderColor = UIColor.lightGray.cgColor border.frame = CGRect(x: 0, y: self.frame.size.height – lineWidth, width: self.frame.size.width, height: self.frame.size.height) border.borderWidth . . . Read more
How to detect if app is running for the first time You can detect if the application is launched for the first time using NSUserDefaults. Just by looking for a key called “launchedBefore” for example and if its not found then the application is running for the first time. if . . . Read more
Create the custom UITableViewCell from a xib file In this tutorial we will create a custom cell from xib file and learn how to use it in UITableView using Swift 3 Create Xcode project 1- Create a new Xcode project and select “Single View Application” template and click next 2- . . . Read more