Ios swift – Swift webview device token
I am testing in Swift to send notifications with Firebase and in general it's working. When i will send a notification to one user, i need the device token of this user. I guess this is not the same as…
I am testing in Swift to send notifications with Firebase and in general it's working. When i will send a notification to one user, i need the device token of this user. I guess this is not the same as…
Why when I create normal Segue to show the next ViewController it make it like this in the leagueVC Not a fullscreen ? I want yo show the next screen as fullscreen by using the segue
I've created a new project in Xcode for iOS. I then created a second ViewController in my project, name "TriviaViewController". However, I'm noticing that the width of my new view controller is not the same as the width of the…
I'm making login flow right now. There is two view controllers for email input and password input. After validating email account, password input view controller pops up. The email VC and password VC is very similar but slightly different. just…
I have two viewControllers, vcA and vcB. vcA is the initial view controller and it's embedded in a navigation controller, navVC. To display vcB I push vcB with navVC. However, for vcA I don't want to display the navigation bar…
I'm trying to automatically switch from lauch screen to home screen after 3 sec. This is code in entry point view controller override func viewDidAppear(_ animated: Bool) { DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(3)) { let mainStoryboard: UIStoryboard = UIStoryboard(name: "Main", bundle:…
Here is my popup view controller: import UIKit class PopupViewController: UIViewController { var bigVC = GameViewController() var cardPhoto: UIImage? var nameLabel: String? var bio: String? var index: Int? @IBOutlet weak var photo: UIImageView! @IBOutlet weak var label: UILabel! @IBOutlet weak…
So far I have only been able to create one iboutlet per button. What i want to achieve is to create one iboutlet for many buttons thus allowing me to write the code for creating the same border width, colour…
Code text in ViewController.swift in Xcode is suddenly not colored anymore (keywords, objects, etc.) except for types like string and int. Also autocompletion is not working anymore. Any other swift file within the same project, like AppDelegate for example is…
As asked on the question. On my first VC, I have set up a function that passes an image to another VC as follows. @objc func imageTapped(tapGestureRecognizer1: UITapGestureRecognizer) { let passimage = tapGestureRecognizer1.view as! UIImageView let alertController = UIAlertController(title: "...",…