Post

Replies

Boosts

Views

Activity

Reply to Push data to other VC with protocol, error: force unwrapped a nil value
You dont't load anything in PhoneNumberVC. Where is the content of PhoneNumberVC defined ? In a nib file ? You should instantiate nextVC from it. In addition, you could simplify a little your code: @objc func goNext() { name = nametextField.text! print("Name: \(name)") // if nametextField.text?.isEmpty == false { if !name.ismpty { let nextVC = PhoneNumberVC() // That's a problem nextVC.modalPresentationStyle = .fullScreen // present(nextVC, animated: true, completion: nil) } else { print("No valid name") } }
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’21
Reply to Swift Student Challenge
Because of if If it runs on iPadOS I understand that you have the choice between any of the 3:be written in and run on Swift Playgrounds 3.4.1 on iPadOS 14.4.2, Swift Playgrounds 3.4.1 on macOS 11.2.3, or Xcode 12.4 on macOS 11.2.3.
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to Swift Student Challenge
You need to provide a proof that you are a student. So, a document from your school attesting you study there should be OK. (I think that's the best) Or if you received a document of your class schedule, copy it. That will allow to check with the dean or principal if that's authentic. Don't forget to provide the contact address for your dean or principal (e mail should be best).
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to Swift Student Challenge
So I can’t software updates, right? What do you mean ? Do you want to know if you need to update software ? Which of the 3 options do you select ? That will tell you what versions you need to use. Don't forget to close the threads on the correct answer when it's OK.
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to Swift Student Challenge
I understand it as a minimum requirement, and any commercial release more recent should be OK. So, iPadOS 14.5 should be OK. But effectively, their message is not very clear. However, I note that: Deadline for submissions is Monday, April 19, 2021, at 11:59 p.m. PDT. It seems you have already missed the deadline anyway. I saw you had older thread with replies and you never acknowledge answers nor close them. It is a good practice to close thread on correct answer once completed.
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to Why are forum posts locked after two months of inactivity?
Hi Quinn, Thanks, good news. Would be great if they could profit of it to correct other annoying issues too: impossibility to correct an erroneously marked Correct answer 1 hour limit to modify a post or impossibility to delete a post (at least when there is no answer to it). FB8801974 seemed solved, but visibly not (when marking one's own answer as correct)
May ’21
Reply to Page View Controller pages stuck in the middle during fast tap on PageControl
Could you show how you used didFinishAnimating ? If not working, try this other delegate func optional func pageViewController(_ pageViewController: UIPageViewController, willTransitionTo pendingViewControllers: [UIViewController]) put a print inside to check it is effectively called. Don' forget to declare conformance to UIPageViewControllerDelegate. Note: that seems to work only with the gestures, not the tap on dots. have a look here to see how to intercept taps (and possibly delay). https://stackoverflow.com/questions/55405731/tap-on-pagecontrol-to-scroll-to-another-view-tap-on-the-dots or this: https://stackoverflow.com/questions/13854222/how-can-i-change-the-page-on-clicking-the-dots-of-uipagecontrol pageControl is defined as:     var pageControl = UIPageControl() And you connect an action to it.
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’21