Starting chat at the bottom of tableview in iOS. October 06, 2017 //For starting chat at the bottom of the tableview. CGPoint bottomOffset = CGPointMake(0, self.tView.contentSize.height - self.tView.bounds.size.height); [self.tView setContentOffset:bottomOffset animated:NO]; Share Get link Facebook X Pinterest Email Other Apps Labels scroll Tableview Share Get link Facebook X Pinterest Email Other Apps Comments
Replace whiteSpace with %20 in string Swift 3 November 03, 2017 //Here is a string containing white space let strWithSpace = "This is swift coding" let strWithNoSpace = strWithSpace .replacingOccurrences(of: " " , with: "%20" ) print ( strWithNoSpace ) OutPut:- This%20is%20swift%20coding Happy Coding:) Read more
post method using alamofire in swift 3 November 03, 2017 func addSubscriptionApi(_completeUrl: String ) { //HUD Alamofire.request(_completeUrl, method:.post, parameters: nil , encoding: JSONEncoding. default , headers: nil ).responseJSON { response in switch (response.result) { case .success( _ ): if let data = response.result.value as ? NSDictionary { print(response.result.value as Any) print(data) print("SUCCESS") } break ... Read more
Call phone Number In swift 3 November 14, 2017 //Here you can make method of calling functionality. func callNumber (yourP honeNumber : String ) { if let phoneCallURL = URL ( string : "tel://\(yourP honeNumber )" ) { let application : UIApplication = UIApplication . shared if ( application . canOpenURL ( phoneCallURL )) { application . open ( phoneCallURL , options : [:], completionHandler : nil ) } } } Happy Coding :) Read more
Comments
Post a Comment