Uncategorized

IOS swipe detection in all direction : left , right, up and down in swift 4

Step 1 : Add this in viewDidLoad function¬† [java] let swipeLeft = UISwipeGestureRecognizer(target: self, action: #selector(handleGesture)) swipeLeft.direction = .left self.view.addGestureRecognizer(swipeLeft) let swipeRight = UISwipeGestureRecognizer(target: self, action: #selector(handleGesture)) swipeRight.direction = .right self.view.addGestureRecognizer(swipeRight) let swipeUp = UISwipeGestureRecognizer(target: self, action: #selector(handleGesture)) swipeUp.direction =… Continue Reading…

Uncategorized

IOS use hex color code in swift 4

Step 1 : Create an extension class and paste the code bellow [java] import Foundation import UIKit extension UIColor { public convenience init?(hexString: String) { let r, g, b, a: CGFloat if hexString.hasPrefix("#") { let start = hexString.index(hexString.startIndex, offsetBy: 1)… Continue Reading…

Uncategorized

Android get current location (latitude and longitude) using GPS

Step 1 : Create a project and add these permissions to AndroidManifest.xml [java] <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission. ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.INTERNET" /> [/java] Step 2 : Create a Service class named GpsTracker and paste these code . Here implemented… Continue Reading…

Uncategorized

Android google map : get current location (latitude,longitude)

Step 1 : Create Project with Google Map Activity¬† Create a project with google map activity which is great to track all my fitness activities like running, which is one of my favorite exercises along with training with my amazon… Continue Reading…

November 2018
M T W T F S S
« Oct   Jan »
 1234
567891011
12131415161718
19202122232425
2627282930  

Site Statistics

  • Users online: 0 
  • Visitors today : 6
  • Page views today : 6
  • Total visitors : 2,876
  • Total page view: 3,222