Category Archives : Swift

Home  >>  Swift

IOS best network image download library – SDWebImage , Swift 3/4

2
Mar,2018

0

Sometimes network image doest not download and for that app may crash . To avoid this you can use SDWebImage library as like Picasso android library which will show a default placeholder image until file downloaded . To implement SDWebImage…

Swift 3 / 4 get current location with location manager .

3
Nov,2017

0

Step – 1 :  First define LocationManager . And Current location of CLLocaion .   var manager = CLLocationManager() var currentLocation: CLLocation! Step 2 : In ViewDidController get Current location with location manager . That’s it .   manager.requestWhenInUseAuthorization()   …

Swift 3 /4 take photo from camera or gallery and show it .

1
Nov,2017

0

Step One : First create a project and take imageView and a button to capture image . Connect it to ViewController . Step Two : Copy this code and run . hope it will be done . 😀    class ImageCapture: UIViewController…

Swift Tutorial Series In Bangla : Collection Type – Array

6
Feb,2017

0

Source Code import UIKit var integerTypeArray = [Int]() integerTypeArray.append(3) integerTypeArray.append(5) var stringTypeArray = [String]() stringTypeArray.append(“ios”) var threeWillbeTenTimesArray = Array(repeatElement(“Three”, count: 10)) var fiveWillbeTenTimesArray = Array(repeatElement(“Five”, count: 10)) var addThreeAndFiveArray = threeWillbeTenTimesArray + fiveWillbeTenTimesArray var literalTypeArray : [String] = [“swift”,”version”,”three”] literalTypeArray[0]…