Skip to main content


Parse JSON Data with GET Method Using JsonDecoder in iOS

Parse JSON Data(GET Method) in UITableViewCell Using JsonDecoder Swift 4 & Xcode 9

1) -- ViewController Class
First Create a new Project (ParseDataGETMethod) after make a struct (GetJsonData) type data parameter

import UIKit
struct GetJsonData:Decodable { let name: String let capital: String let alpha2Code: String let alpha3Code: String let region: String let subregion: String } class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { var arrData = [GetJsonData]() @IBOutletvar tableView: UITableView! overridefunc viewDidLoad() { super.viewDidLoad() getJSONData() } func getJSONData(){ let url = URL(string: "") let session = URLSession.shared session.dataTask(with: url!) { (data, response, error) in do{ if error == nil { self.arrData = tryJSONDecoder().decode([GetJsonData].self, from: data!) formainarr inself.arrData{ // print(, ":",, "-", mainarr.alpha2Code ) DispatchQueue.main.sync { s…

One Line JSON Parsing Swift 4 Simple Example

 One Line Parsing JSON in Swift 4.0 With Codable or Decodle

 Swift 4 includes a new way to generate and parse JSON with Swift Codable protocol.

"name" = Rahul'
"id" = 10
"collage" = RTS Collage
"code" = A190
 import UIKit
struct  Profile: Codable {
let name: String
let id: Int
let  collage: String
let code: String

 Convert Item(Profile) to JSON
 init?(json: [String: Any]){
 guard let name = json["name" ] as?  String,
           let id= json["id" ] as?  Int,
           let collage= json["collage"  ]as?  String,
           let code= json["code" ] as?  String, else { return nil} = name = id
self.collage = collage
self.code = code
class ViewController: UIViewController {
  guard let url = URL(string: "https://xxxxxxxxxx") else {return}
  URLSession.shared.dataTask(with: url) { (data, response  , error) in   
   guard let data = data else {return}
           let decoder = try JS…

Validation Password or Username in Swift 4.0

Validation Password or Username in Swift 4.0
Validation Tutorial Password Or Username Swift 4.0. Two type password validation. Most of the validation same confirm password , Password must one uppercase letter, Password must have more then some characters , Password contain some special character , Password must one digit. etc.

Type First Password Validation - 

Password Mini or Max length is 6 - 10.
One Alphabet in Password.
One Special Character in Password.

^                              - Start Anchor.
(?=.*[a-z])               -Ensure string has one character.
(?=.[$@$#!%?&])   -Ensure string has one special character.
{8,}                           -Ensure password length is 8.
$                               -End Anchor.

See Example -  

func isPasswordValidate(_ password : String)->Bool{
  let validatePassword= NSPredicate(format: "SELF MATCHES %@", "^(?=.*[a-z])(?=.*[$@$#!%*?&])[A-Za-z\\d$@$#!%*?&]{8,}")
    return validatePassword.evaluate(with:…

Open PDF Tutorial - WKWebView in iOS Swift 4.0

Open PDF Tutorial - WKWebView in iOS Swift 4.0

Core Data With Swift 4.0 Tutorial

Core Data - Core Data is a framework that you use to manage the data model layer objects or instance Context in your application. It provides generalized and automated data stores solutions to common tasks associated with object life cycle and object graph management, including persistence.
Completely Tutorial for Swift 4 and iOS 11. Gating Start Goto Xcode and create New iOS Project on single view. Project Name CoreDataSwift or Checked Use Core Data

On click Main.Storyboard in Interface builder click on project navigation Editor - Embed In - Navigation controller.

Then After click on Navigation ViewController and next Drag TableView in to ViewController.

Make TableView viewcontroller Outlet Delegate, DataSource and import CoreData

import UIKit import CoreData
class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { overridefunc viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } overridefunc didReceiveMem…

Complete Increasing Search Ranking mobile Application

Improve iphone, android mobile application on first page in App store or Google play. App Store Optimization service is a best solution for app store free mobile apps iphone or ipad.  App Store Optimization is likely technique For SEO and SMO.  It improves app distribution by increasing high search rank for apps in an App Store.

Key of Goal of ASO for follow technologies step vies content optimization in to application title or description. How much time used keyword in descriptions and used keyword in application title.
Apps Optimization ASO Key Factors
App Title, App Keywords, Reviews & Ratings, App Description, App Logo, App Screenshots, App Publisher Name and Category.

How to performance indicators for content optimization By On-Page activity of app content is the best effect from app store optimization success.  How you select keywords and describe your app affects your search ranking and visibility. Track2india has been in the App Store Optimization services since 2015.  We hav…

Mobile Apps Optimizing High Rank in App Store’s Android or iphone - ASO

App Store Optimization is a best new marketing technique improving mobile app visibility high rank or more traffic into Google play store,  iphone apps store or window store apps in your app page. The more visible it is to potential customers. That increased visibility tends to translate into more traffic to your app’s page in the app store. Mobile apps improving the visibility process (ASO) App Store Optimization such as an iPhone, Android, Windows phone app in an app store for iOS, Google play for android and BlackBerry World. (ASO) App Store Optimization like that (SEO) Search Engine Optimization is for website.

The ASO process is a target your customer base stratagity, including the similar keywords targeting your potential searching apps plan. The most important and basic part of app store optimization is to find the related topics or keywords that would describe what your target audience is looking for.

App Store Optimization Goals
 ASO marketers, like that  SEO marketers, work …

ASO Off-Page Activities - Free Submission Site Promote Mobile App

Best tips to promote your app for free - Build your mobile apps in to a microsite and a teaser website or start your application blogs to many site like is most important information or disquisition site to promote mobile apps blogs. Share your content use to Twitter, Facebook, Google+ and LinkedIn profiles to promote the app several times in a week and pitch to app review on your websites. Simple, Ad –Free Social Sites and take start Smart private messages to Join Developers & Entrepreneurs Groups on Social Media

Used to 8 Ways to Promote Your Mobile App from Your Mobile Site:- Splash PageLight BoxApp Store BannerCustom BannerHero ShotCTA ButtonMenu – promote way to used mobile app side menu navigationThe app alternative bookmark your site their home screenTop More Other Mobile Apps Store Sites:-…