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:) Share Get link Facebook X Pinterest Email Other Apps Labels %20. replace string replacingOccurrences Trim String WhiteSpace Share Get link Facebook X Pinterest Email Other Apps Comments Hasin22 October 2018 at 05:47Could you suggest anything regarding pay online system?ReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
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
Set Placeholder in UiTextView in swift 3 November 05, 2017 //In viewdidLoad add this DiscriptionTV . text = "Discription" DiscriptionTV . textColor = UIColor . lightGray DiscriptionTV . delegate = self DiscriptionTV . layer . borderColor = UIColor . lightGray . cgColor ; then //Mark:- textView Delegates func textViewDidBeginEditing( _ textView: UITextView ) { if DiscriptionTV . textColor == UIColor . lightGray { DiscriptionTV . text = nil DiscriptionTV . textColor = UIColor . white DiscriptionLab . isHidden = false } } func textViewDidEndEditing( _ textView: UITextView ) { ... Read more
Could you suggest anything regarding pay online system?
ReplyDelete