Tag: swift

Swift NSLayoutConstraint constraintsWithVisualFormat sample code

Swift NSLayoutConstraint constraintsWithVisualFormat sample code – detailed example Created By:Debasis Das (17-Jan-2016) In this post we will create a detailed sample screen in swift having lots of UI elements using NSLayoutConstraint constraintsWithVisualFormat. This sample code uses most of the options

Posted in Cocoa, Swift Tagged with: , , ,

Swift NSLayoutConstraint programatically sample code

Swift NSLayoutConstraint programatically sample code Created By: Debasis Das (16-Jan-2016) In this post we will apply constraints to 4 views in a NSWindow using swift NSLayoutConstraint programatically . This approach is much more tedious and lengthy in comparison to the constraintsWithVisualFormat

Posted in Cocoa, Swift Tagged with: , , , ,

Swift NSLayoutConstraint constraintsWithVisualFormat programmatically

Swift NSLayoutConstraint constraintsWithVisualFormat Sample Code Created By: Debasis Das (16-Jan-2016) In this post we will apply constraints to 4 views in a NSWindow using constraintsWithVisualFormat programmatically. Note: The autoLayOut checkbox is switched off in the XIB and all the constraints

Posted in Cocoa, Swift Tagged with: , ,

Swift Autolayout Visual Format Language – Sample Code

Swift Autolayout Visual Format Language – Sample Code Created By: Debasis Das (7-May-2015) In this article we will create a simple cocoa application in Swift to demonstrate the Autolayout Visual Format Language where the constraints will be added to the views programmatically,

Posted in Cocoa, Swift Tagged with: , , ,

Swift NSToolbar Sample Code

Swift NSToolbar Sample Code Created By: Debasis Das (2-May-2015) In this Sample Application we will create a Cocoa Application for Swift NSToolbar Sample Code  

Posted in Cocoa, Swift Tagged with: , , ,

Swift Extensions

Swift Extensions Written By: Debasis Das (30-Mar-2015) Extensions add new functionality to an existing class, structure, or enumeration type. This includes the ability to extend types for which we do not have access to the original source code (known as retroactive

Posted in Swift Tagged with: , , , , ,

Swift Source List

Swift Source List Created By: Debasis Das (29-Mar-2015) In this article we will create a sample application in Swift to display a Source List (view based NSOutlineView) with sample data. The output of the sample code will have have the

Posted in Swift Tagged with: , , , ,

Swift print, println, NSLog

Swift – print, println, NSLog Written By: Debasis Das (21-Mar-2015) We can use print, println and NSLog in Swift but before we start into sample code lets understand the difference of each Swift println vs Swift print Using println will

Posted in Cocoa, Cocoa Touch, iOS, Swift Tagged with: , , , , , , , ,

Swift – Concurrency, NSOperation, NSOperationQueue

Swift – Concurrency, NSOperation, NSOperationQueue Written by: Debasis Das (21-Jan-2015) Details about Concurrency, NSOperation, Operation Queue & Grand Central Dispatch can be found in this article. The concepts remain the same, there is a slight change to  implementation. NSInvocationOperation is

Posted in Cocoa, iOS, Objective C, Swift Tagged with: , , ,

Swift iOS Custom UITableViewCell

  Swift iOS Custom UITableViewCell Created By: Debasis Das (26-Dec-2014) In this article we will create a simple iOS Application in Swift for having a Custom UITableViewCell that has 3 UI Labels and 2 UIImageViews. Output of the application will

Posted in iOS, Swift Tagged with: , , , ,

Hit Counter provided by technology news