Iphone App Change view controller when WKWebView loaded a specific URL
$10-30 USD
Ukończony
Opublikowano ponad 6 lat temu
$10-30 USD
Płatne przy odbiorze
I'm currently working on a project developing an app for the iPhone. I used the WKWebView class to access the sign-in form of the website. I made the PHP login form to redirect to a custom web address ([login to view URL]) if the user successfully logins. I tried to change the view controller if the that URL was loaded in WkWebView but the below code didn't work.
import WebKit
class SigninViewController: UIViewController, WKNavigationDelegate{
var webView: WKWebView!
override func viewDidLoad() {
[login to view URL]()
let myWebView = WKWebView(frame: CGRect(x: 0, y: 0, width: [login to view URL], height: [login to view URL]))
[login to view URL] = false
[login to view URL] = self
if let signurl = URL(string:"[login to view URL]"){
let request = URLRequest(url: signurl)
[login to view URL](request)
}
[login to view URL](myWebView)
var loadedUrl = String()
func webView(webView: WKWebView, didFinishNavigation navigation: WKNavigation!) {
loadedUrl = [login to view URL] as String!// GETS URL OF CURRENT PAGE LOADED
print(loadedUrl) // this will print url address as option field
if [login to view URL](of: "[login to view URL]") != nil {
let storyBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let newViewController = [login to view URL](withIdentifier: "newViewController") as! GemplanViewController
[login to view URL](newViewController, animated: true, completion: nil) }
}
Limited budget 10-15$ but quick money and 5 star feedback. Thanks
Hello,
we can solve out this problem by using delegate methods
Relevant Skills and Experience
Reason for giving me this work
1. Have experience of 5+ year
2. On time delivery
3. Submit work until client get satisfaction
4. Good output
5. Long time relationship
6. Month Support
Proposed Milestones
$25 USD - On completion of project
Will discuss more over chat
$15 USD w 1 dzień
5,0 (82 opinii)
6,8
6,8
12 freelancerzy składają oferty o średniej wysokości $37 USD dla tej pracy
Greetings from Netra Technosys! Myself Dharmesh.
Netra Technosys is a emerging company in Indian Market. We’re hard workers to achieve any kinds of works with positive attitude. With "24*7 Supports"
Relevant Skills and Experience
We have 10+ experts in iOS, iWatch, Android Application Development
Specialised In
* iOS/iWatch Apps Development
* Firebase, AWS
* Android Apps Development
* Camera + OCR + OpenCV expert
Proposed Milestones
$15 USD - No worries about payment, We can discuss (Milestone basis) in Private Chat.
Hit a message We're ready to help you.
Best Regards
Dharmesh Ghoghari
Greeting !! i have 6 years of experience in iOS app development . I can fix your issue in 10 Min Please share the details.
Relevant Skills and Experience
Greeting !! i have 6 years of experience in iOS app development . I can fix your issue in 10 Min Please share the details.
Proposed Milestones
$25 USD - after done
Please have a look at my portfolio for some of my apps.
Message me for further details of the project or you need to see more work done by me.
Thanks
Relevant Skills and Experience
Hello, I have 7+ years of experience in iOS development and created many applications so far.
Proposed Milestones
$25 USD - Bug fix