Posts

Web View Using WKWebView iOS Tutorial

Image
WKWebView iOS Tutorial

Hi, In today's post, we'll learn how to use WKWebView or simply saying, how to implement web view in iOS applications. I am using Xcode 9 and Swift 4 for this tutorial. So, let's do it using our step by step approach:

STEP 1:

Open Xcode and create a Single View Application.
Give some name to your app, eg. WebViewAppTutorial and make sure to choose Swift as the language, click Next.

STEP 2:

Here, first we'll embed our app in a navigator controller. For this, just open your Main.storyboard and click on View Controller. Now, select Editor from Xcode Menu bar, and select Embed in > Navigation Controller.



STEP 3:

Now, open ViewController.swift file and import webkit module.

import WebKit

Under your ViewController class , add the webView property as:

var webView: WKWebView!
Now, in your class declaration, add one WKNavigationDelegate protocol as shown below:

class ViewController: UIViewController, WKNavigationDelegate {
STEP 4:

Add loadView() method in you…

Create Custom Buttons In iOS Without Any Coding

Image
Create Custom Buttons In iOS Without Any Code

Today, In this post, I am bringing you one very useful iOS component for creating custom buttons for your iOS apps without any coding in interface builder very efficiently and quickly. This component name is LGButton and created by Lorenzo Greco.

LGButton is an open source iOS component which allows you to create custom advanced buttons within the interface builder very easily. LGButton is a fully customisable subclass of the UIControl.

Using this component, you can easily create more advanced buttons with many shapes, gradients, icons etc. without writing any line of code. This component allows you to create asynchronous operations(like loaders etc.) as well.

Below is the image showing some of the button designs using this iOS component:

You can get this iOS tool from here on GitHub. Hope it helps!

I am sure, you'll love this component for saving your time and efforts writing your own code for creating any kinda modern button designs …

Convert Swift Code To Kotlin Using SwiftKotlin Mac Tool

Image
Convert Swift Code To Kotlin Using SwiftKotlin Mac Tool

Today, In this post, I am bringing you one very useful and easy to operate Mac tool for converting your Swift code to Kotlin very efficiently.

Kotlin is general purpose, open source, statically typed programming language for the JVM and Android which combines both the functional and Object-oriented programming features. It has similar syntax as of Swift language. It provides almost all of the swift programming language features like optionals, generics, extensions, etc.

Using this powerful SwiftKotlin tool you can automatically transform the Swift code into Kotlin with very less efforts or tweaks to the code (like to adapt the code for android specific libraries).

Below is the image showing the SwiftKotlin tool in running:



You can get this tool from here on GitHub. Hope it helps!

I am sure, you'll love this tool for saving your time and efforts writing your Swift code into Kotlin and learning this modern language.

If you'…

Twitter Login Integration In iOS Using Swift

Image
Twitter Login Integration In iOS Using Swift

Hi, In this post, we'll learn how to integrate Twitter SDK in iOS apps. Its pretty simple and easy to implement Login using Twitter in iOS applications. You can learn it just by going through this post only once. I hope you'll like it!

FYI, we can use twitter login in 2 ways in our iOS applications. One is using default Twitter Login Button and second one is using our own custom button for twitter login. In this post, I'll guide you through both the twitter login methods.

Without any delay, let's start with our project setup. Again, we'll accomplish our goal by following a step by step approach as mentioned below:
Setup Xcode ProjectInstall Twitter PodsCreate App On Twitter Apps DashboardWrite Some CodeRun Our AppSTEP 1: Setup Xcode Project: 

First of all, open your Xcode project and create a single view application. Give some name to your project and click Next.

Here, if you want to use Twitter's own custom Login but…

Facebook Login Integration In iOS Using Swift

Image
Facebook Login Integration In iOS Using Swift

Hi, In this post, we'll learn how to implement Facebook Login in iOS apps. Nowadays, users don't want to waste their time for signing up, instead they just want a quick and secure signup/login process through their social accounts. So, in this post, we'll cover how to enable Facebook login in iOS applications. Its pretty simple and easy to learn. I hope you'll enjoy it!
So, again, we'll accomplish our goal by following a step by step approach as mentioned below:
Setup Xcode ProjectInstall Facebook PodsCreate App On Facebook Developer ConsoleWrite Some CodeRun Your AppSTEP 1: Setup Xcode Project
First of all, open your Xcode project and create a single view application. Give some name to your project and click Next.


Once you're in your project environment, drag and drop a button on your storyboard and give it some name like "Login With Facebook". Add some constraint on this button and create its action in yo…

PayPal Integration In iOS Applications | Payment Gateways iOS/Swift

Image
PayPal Integration In iOS Applications | Payment Gateways iOS/Swift

Hey everyone, In today's post, we'll learn about how to integrate PayPal SDK in iOS apps. These days, there's a huge increase in the eCommerce business. With this increase, there's also getting a high demand of eCommerce mobile apps. The most important part of any eCommerce mobile app is the payment processing through a secure payment gateway. Without any secure payment gateway, no user will trust on your mobile app and hence no one wants to use their payment methods with your app. So, a secure and reliable payment gateway is must for every eCommerce mobile app. And when it comes to reliability and security who can ever forget PayPal ???
So, In this tutorial, I'll guide you through a step by step approach to integrate PayPal Payment Gateway into any iOS application using Swift as the language. I hope you'll like it.

And Yes, Bring yourself a cup of coffee, this tutorial is going to take some of…