So looks like cards like layout and horizontal scrolling is really getting some tractions and many apps have started using it. Offcourse there are several…
Swift 2.0 substringWithRange
Ah finally solved. This was so much drama for a small thing to do. Problem: I have a string; SINCGKXXXYY . [Say these are 2 airport…
How to get current day, month and year in NSDate() using Swift?
Just so that i never waste any more time in my life on this, this goes here.. Swift 1.x
1 2 3 4 5 6 7 |
let date = NSDate() let calendar = NSCalendar.currentCalendar() let components = calendar.components(.CalendarUnitDay | .CalendarUnitMonth | .CalendarUnitYear, fromDate: date) let year = components.year let month = components.month let day = components.day |
Every changing depreciations and swift…
Spotify Like Video Welcome Screen using Swift
Displays a video welcome screen like Spotify. You can swap left and right to change the message. You should be able to add as much…
Create a auto hide popup with swift
So i needed a popup kind of view for an IOS app. The purpose of the popup was to display a message when a gesture…
Run a snippet of code only once in lifetime for a app – Swift -Xcode
I have to do a Core data initialization where i have to put a chunk of sample data inside Core Data only once when the…
Generate a Random Color in Swift
There are many ways to do it. But the quickest with smallest possible code is using drand48
How to manually access Core Date / SQLite file in Xcode 6/IOS 8 Swift Programming
How to access Core Date / SQLite file in Xcode 6/IOS8 Swift Programming
Hide StatusBar through program – Swift/Xcode 6/IOS 8
Just a small snippet to hide the Status Bar on your UIViewController.
Creating Frosted Glass effect using Swift – ios 7/ios 8 – Xcode 6
In this tutorial we will modify a UIViewController to behave like a semi transparent Frosted Blur Glass