Featured
-
Swift Programming Basics for Beginner - A 10 Min Video Tutorial
As we all are aware that Swift is new programming
by sandeep.rawat
Tags
Present ViewController with Transparent Background in Swift iOS App - Basic Steps
Sometimes we have to show a transparent View on a ViewController, For that we generally use .xib file and add them as subView in ViewController to show the transparency. But we can also give the transparency to view controller while presenting th...
How to Capture Screenshot of Particular Screen Via Swift3 Application
Many a time we need to take a screenshot of a screen on an iOS device. So In this blog, we will discuss how to capture a screenshot of a particular screen through an application and with the help of an example this concept can easily be understoo...
Send Text Message in Swift
Hi,
Here we’ll learn how to send messages programatically in Swift. With the use of provided MessageUI framework we will implement message functionality in our app. This framework has MFMessageComposeViewController class which prov...
Function Returning Function in Swift
Hi,
As we all know that Swift comes with new and variety of enhancements over objective C. Returning a function as a return type of a function is also one of them.
Here we are defining two functions which are accepting Int kind of...
UiSplitView Controller in Swift
To Create a SplitViewController in swift follow the steps:-
1- Create a new Project.
2- Add a splitViewController.
3- Create a cocoaTouch Class inherits from UIViewController named as DetailViewController
4- Create another CoCoatouchC...
Show a pdf file in ios WebView in swift
Hi to load a swift file in webView in ios :-
1- Add a WebView in your viewController
2- Create an IBOutlet for this.
3- set the delegate fro webView.
4- if you want to load the pdf from server or from an url use the function loadFromU...
login to facebook in ios 9.0
to login using facebook in iPhone sdk please use the code below.
install the pods for facebook using
pod "FBSDKCoreKit";
pod "FBSDKLoginKit";
pod "FBSDKShareKit";
pod "FBSDKMessengerShareKit"
import FBSDKLoginKit
...
Send a request using Alamofire in swift
Use the alamofire in swift first install the pod file in your project using below steps:
1- open the terminal and run following commands
sudo gem update --system
sudo gem install cocoapods
pod setup
change folder to the current proejct ...
How to use completion handler in swift
The code below will help you in declaration of completion handler and how to call the completion handler in swift.
To declare a completion handler in swift use the line :
typealias completionHander = (sucess: Bool)->Void
//decalrat...
Show The Contact List in iOS
To show the list of contact in iPhone use the code Below:
1- import the ContactsUI framwork in viewController
2- Confrom the ViewController to the CNContactPickerDelegate
3- call the delegate method func contactPicker(picker: CNContactPicke...